Skip to content

Commit 5f9fee4

Browse files
Merge pull request #980 from arbiben/master
volume detail update - iops
2 parents 5439d63 + 0658dd1 commit 5f9fee4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

SoftLayer/CLI/block/detail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def cli(env, volume_id):
2929
table.add_row(['LUN Id', "%s" % block_volume['lunId']])
3030

3131
if block_volume.get('provisionedIops'):
32-
table.add_row(['IOPs', int(block_volume['provisionedIops'])])
32+
table.add_row(['IOPs', float(block_volume['provisionedIops'])])
3333

3434
if block_volume.get('storageTierLevel'):
3535
table.add_row([

tests/CLI/modules/block_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def test_volume_detail(self):
5959
result = self.run_command(['block', 'volume-detail', '1234'])
6060

6161
self.assert_no_fail(result)
62+
isinstance(json.loads(result.output)['IOPs'], float)
6263
self.assertEqual({
6364
'Username': 'username',
6465
'LUN Id': '2',

0 commit comments

Comments
 (0)