Skip to content

Commit

Permalink
Fixing when image size if None.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Zakaznikov committed Oct 3, 2024
1 parent 71ca826 commit 3d950d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testflows/github/hetzner/runners/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def list(args, config: Config):
+ f"status: {image.status}\n "
+ f"architecture: {image.architecture}\n "
+ f"labels: {image.labels}\n "
+ f"image size: {image.image_size:.02f}GB\n "
+ f"disk size: {image.disk_size:.02f}GB\n "
+ f"image size: {image.image_size or 0:.02f}GB\n "
+ f"disk size: {image.disk_size or 0:.02f}GB\n "
+ (f"bound to: ")
+ ("None" if not image.bound_to else f"{image.bound_to.name}")
+ ("\n ")
Expand Down

0 comments on commit 3d950d7

Please sign in to comment.