Skip to content

Commit d07f926

Browse files
committed
Fix program indications for list/persist/unpersist
1 parent cdf4aab commit d07f926

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/aleph_client/commands/program.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ async def list_programs(
458458
"HyperV: [magenta3]Firecracker[/magenta3]\n",
459459
f"Timeout: [orange3]{message.content.resources.seconds}s[/orange3]\n",
460460
f"Persistent: {'[green]Yes[/green]' if message.content.on.persistent else '[red]No[/red]'}\n",
461-
f"Updatable: {'[green]Yes[/green]' if message.content.allow_amend else '[red]No[/red]'}",
461+
f"Updatable: {'[green]Yes[/green]' if message.content.allow_amend else '[orange3]Code only[/orange3]'}",
462462
]
463463
specifications = Text.from_markup("".join(specs))
464464
volumes = ""
@@ -511,7 +511,7 @@ async def persist(
511511
verbose: bool = True,
512512
debug: bool = False,
513513
) -> Optional[str]:
514-
"""Recreate a non-persistent program as persistent (item hash will change)"""
514+
"""Recreate a non-persistent program as persistent (item hash will change). The program must be updatable and you must be the owner"""
515515

516516
setup_logging(debug)
517517

@@ -603,7 +603,7 @@ async def unpersist(
603603
verbose: bool = True,
604604
debug: bool = False,
605605
) -> Optional[str]:
606-
"""Recreate a persistent program as non-persistent (item hash will change)"""
606+
"""Recreate a persistent program as non-persistent (item hash will change). The program must be updatable and you must be the owner"""
607607

608608
setup_logging(debug)
609609

0 commit comments

Comments
 (0)