Skip to content

Commit

Permalink
Swap --rm flag for --persist since most times we want to delete the p…
Browse files Browse the repository at this point in the history
…od on exit
  • Loading branch information
sgibson91 committed Dec 13, 2024
1 parent 7aa0204 commit 7a4261f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deployer/commands/exec/infra_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
def root_homes(
cluster_name: str = typer.Argument(..., help="Name of cluster to operate on"),
hub_name: str = typer.Argument(..., help="Name of hub to operate on"),
rm_pod: bool = typer.Option(
False, "--rm", help="Automatically delete the pod after completing"
persist: bool = typer.Option(
False, "--persist", help="Do not automatically delete the pod after completing. Useful for long-running processes."
),
extra_nfs_server: str = typer.Option(
None, help="IP address of an extra NFS server to mount"
Expand Down Expand Up @@ -144,7 +144,7 @@ def root_homes(
# Exec into pod
subprocess.check_call(exec_cmd)
finally:
if rm_pod:
if not persist:
delete_pod(pod_name, hub_name)


Expand Down

0 comments on commit 7a4261f

Please sign in to comment.