Skip to content

Commit e938d71

Browse files
Arsh KushwahaArsh Kushwaha
authored andcommitted
Changed method name and addressed comments
1 parent e4a5e0f commit e938d71

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

SoftLayer/CLI/block/duplicate_convert_status.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
@environment.pass_env
1414
def cli(env, volume_id):
1515
"""Get status for split or move completed percentage of a given block duplicate volume."""
16-
table = formatting.Table(['username', 'active_conversion_start_time', 'completed_percentage'])
16+
table = formatting.Table(['Username', 'Active Conversion Start Timestamp', 'Completed Percentage'])
1717

1818
block_manager = SoftLayer.BlockStorageManager(env.client)
1919

20-
value = block_manager.split_percentage(
21-
volume_id
22-
)
20+
value = block_manager.convert_dupe_status(volume_id)
2321

2422
table.add_row(
2523
[

SoftLayer/CLI/file/duplicate_convert_status.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
@environment.pass_env
1414
def cli(env, volume_id):
1515
"""Get status for split or move completed percentage of a given file duplicate volume."""
16-
table = formatting.Table(['username', 'active_conversion_start_time', 'completed_percentage'])
16+
table = formatting.Table(['Username', 'Active Conversion Start Timestamp', 'Completed Percentage'])
1717

1818
file_manager = SoftLayer.FileStorageManager(env.client)
1919

20-
value = file_manager.split_percentage(
21-
volume_id
22-
)
20+
value = file_manager.convert_dupe_status(volume_id)
2321

2422
table.add_row(
2523
[

SoftLayer/managers/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def convert_dep_dupe(self, volume_id):
578578
'convertCloneDependentToIndependent',
579579
id=volume_id)
580580

581-
def split_percentage(self, volume_id):
581+
def convert_dupe_status(self, volume_id):
582582
"""Get the Clone split/move status completion of a duplicate volume
583583
584584
:param integer volume_id: The id of the volume.

0 commit comments

Comments
 (0)