print backup archive ids instead of bare objects
checks / check-links (pull_request) Successful in 22s Details
checks / checks-impure (pull_request) Successful in 2m9s Details
checks / checks (pull_request) Successful in 3m6s Details

This commit is contained in:
Jörg Thalheim 2024-02-22 15:22:36 +01:00
parent 81fc60eef8
commit 12ce8238f1
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ def list_backups(machine: Machine, provider: str | None = None) -> list[Backup]:
def list_command(args: argparse.Namespace) -> None:
machine = Machine(name=args.machine, flake=args.flake)
backups = list_backups(machine=machine, provider=args.provider)
print(backups)
for backup in backups:
print(backup.archive_id)
def register_list_parser(parser: argparse.ArgumentParser) -> None: