Skip to content

Commit 78239ec

Browse files
caberoscaberos
authored andcommitted
fix tox tool
1 parent 5e970b1 commit 78239ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SoftLayer/CLI/file/detail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111

1212
def get_capacity(file_volume):
13+
"""Get the capacity Gb with validate the data"""
1314
capacity = '0'
1415
if file_volume['capacityGb'] != '':
1516
capacity = "%iGB" % file_volume['capacityGb']
@@ -34,7 +35,7 @@ def cli(env, volume_id):
3435
table.add_row(['ID', file_volume['id']])
3536
table.add_row(['Username', file_volume['username']])
3637
table.add_row(['Type', storage_type])
37-
table.add_row(['Capacity (GB)', get_capacity(file_volume['capacity'])])
38+
table.add_row(['Capacity (GB)', get_capacity(file_volume)])
3839

3940
used_space = int(file_volume['bytesUsed']) \
4041
if file_volume['bytesUsed'] else 0

0 commit comments

Comments
 (0)