Merge pull request 'print backup archive ids instead of bare objects' (#874) from Mic92-main into main
checks / check-links (push) Successful in 22s Details
checks / checks (push) Successful in 31s Details
checks / checks-impure (push) Successful in 1m51s Details

This commit is contained in:
clan-bot 2024-02-22 14:29:47 +00:00
commit 01f1a6900a
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: