Skip to content

Commit b07e0ec

Browse files
author
Fernando Ojeda
committed
Add docstring for block and file new method.
1 parent 4007d75 commit b07e0ec

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

SoftLayer/CLI/block/detail.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111

1212
def get_block_volume_id(volume_id, block_manager):
13+
"""Returns the volume id.
14+
15+
:param volume_id: ID of volume.
16+
:param block_manager: Block Storage Manager.
17+
:return: Returns the volume id.
18+
"""
1319
storage_list = block_manager.list_block_volumes()
1420
for storage in storage_list:
1521
if volume_id == storage['username']:

SoftLayer/CLI/file/detail.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111

1212
def get_file_volume_id(volume_id, file_manager):
13+
"""Returns the volume id.
14+
15+
:param volume_id: ID of volume.
16+
:param block_manager: Block Storage Manager.
17+
:return: Returns the volume id.
18+
"""
1319
storage_list = file_manager.list_file_volumes()
1420
for storage in storage_list:
1521
if volume_id == storage['username']:

0 commit comments

Comments
 (0)