Skip to content

Commit

Permalink
Fix program indications for list/persist/unpersist commands (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
philogicae authored Jan 23, 2025
1 parent d3e710e commit 0e35d70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aleph_client/commands/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ async def list_programs(
"HyperV: [magenta3]Firecracker[/magenta3]\n",
f"Timeout: [orange3]{message.content.resources.seconds}s[/orange3]\n",
f"Persistent: {'[green]Yes[/green]' if message.content.on.persistent else '[red]No[/red]'}\n",
f"Updatable: {'[green]Yes[/green]' if message.content.allow_amend else '[red]No[/red]'}",
f"Updatable: {'[green]Yes[/green]' if message.content.allow_amend else '[orange3]Code only[/orange3]'}",
]
specifications = Text.from_markup("".join(specs))
volumes = ""
Expand Down Expand Up @@ -511,7 +511,7 @@ async def persist(
verbose: bool = True,
debug: bool = False,
) -> Optional[str]:
"""Recreate a non-persistent program as persistent (item hash will change)"""
"""Recreate a non-persistent program as persistent (item hash will change). The program must be updatable and yours"""

setup_logging(debug)

Expand Down Expand Up @@ -603,7 +603,7 @@ async def unpersist(
verbose: bool = True,
debug: bool = False,
) -> Optional[str]:
"""Recreate a persistent program as non-persistent (item hash will change)"""
"""Recreate a persistent program as non-persistent (item hash will change). The program must be updatable and yours"""

setup_logging(debug)

Expand Down

0 comments on commit 0e35d70

Please sign in to comment.