Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ctf/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def deploy(
help="Incus project for VM to be deployed to",
),
] = None,
redeploy: Annotated[
bool, typer.Option("--redeploy", help="Do not use. Use `ctf redeploy` instead.")
keep_already_deployed: Annotated[
bool, typer.Option("--keep", help="Keep already deployed tracks.")
] = False,
force: Annotated[
bool,
Expand Down Expand Up @@ -100,7 +100,7 @@ def deploy(
remote=remote,
vm_remote=vm_remote,
vm_project=vm_project,
redeploy=redeploy,
keep_already_deployed=keep_already_deployed,
)

# Check if Git LFS is installed on the system as it is required for deployment.
Expand Down
8 changes: 4 additions & 4 deletions ctf/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def generate(
help="Incus project for VM to be deployed to",
),
] = None,
redeploy: Annotated[
bool, typer.Option("--redeploy", help="Do not use. Use `ctf redeploy` instead.")
keep_already_deployed: Annotated[
bool, typer.Option("--keep", help="Keep already deployed tracks.")
] = False,
exclude_tracks: Annotated[
list[str],
Expand All @@ -91,7 +91,7 @@ def generate(
if distinct_tracks:
LOG.debug(msg=f"Found {len(distinct_tracks)} tracks")
# Generate the Terraform modules file.
if not redeploy:
if not keep_already_deployed:
create_terraform_modules_file(remote=remote, production=production)

tmp_tracks: set[Track] = set()
Expand All @@ -111,7 +111,7 @@ def generate(

add_tracks_to_terraform_modules(
tracks=distinct_tracks - get_terraform_tracks_from_modules()
if redeploy
if keep_already_deployed
else distinct_tracks
)

Expand Down
2 changes: 1 addition & 1 deletion ctf/redeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def redeploy(
remote=remote,
vm_remote=vm_remote,
vm_project=vm_project,
redeploy=True,
keep_already_deployed=True,
force=force,
skip_build=skip_build,
exclude_tracks=exclude_tracks,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies = [
"typer==0.24.1",
"pydantic",
]
version = "5.0.0"
version = "5.0.1"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
Expand Down
Loading