We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e970b1 commit 78239ecCopy full SHA for 78239ec
SoftLayer/CLI/file/detail.py
@@ -10,6 +10,7 @@
10
11
12
def get_capacity(file_volume):
13
+ """Get the capacity Gb with validate the data"""
14
capacity = '0'
15
if file_volume['capacityGb'] != '':
16
capacity = "%iGB" % file_volume['capacityGb']
@@ -34,7 +35,7 @@ def cli(env, volume_id):
34
35
table.add_row(['ID', file_volume['id']])
36
table.add_row(['Username', file_volume['username']])
37
table.add_row(['Type', storage_type])
- table.add_row(['Capacity (GB)', get_capacity(file_volume['capacity'])])
38
+ table.add_row(['Capacity (GB)', get_capacity(file_volume)])
39
40
used_space = int(file_volume['bytesUsed']) \
41
if file_volume['bytesUsed'] else 0
0 commit comments