From dc8c1b48e76fd9a7d4bf7999bf9ee5f5dd92d4b0 Mon Sep 17 00:00:00 2001 From: azzamsa Date: Wed, 29 Apr 2020 15:18:06 +0700 Subject: [PATCH] Fix - disk list size --- vcd_cli/disk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcd_cli/disk.py b/vcd_cli/disk.py index 96b49272..89751557 100644 --- a/vcd_cli/disk.py +++ b/vcd_cli/disk.py @@ -95,9 +95,9 @@ def list_disks(ctx): 'owner': disk.Owner.User.get('name'), 'size': - humanfriendly.format_size(int(disk.get('size'))), + humanfriendly.format_size(int(disk.get('sizeMb'))), 'size_bytes': - disk.get('size'), + disk.get('sizeMb'), 'status': VCLOUD_STATUS_MAP.get(int(disk.get('status'))), 'vms_attached':