Skip to content

Commit b6e6f2d

Browse files
Merge pull request #2048 from ramkishor-ch/issue_2018
added Description of Example
2 parents ed61330 + d06c07f commit b6e6f2d

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

SoftLayer/CLI/block/refresh.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
help="Cancel current refresh process and initiates the new refresh.")
1414
@environment.pass_env
1515
def cli(env, volume_id, snapshot_id, force_refresh):
16-
"""Refresh a duplicate volume with a snapshot from its parent."""
16+
"""Refresh a duplicate volume with a snapshot from its parent.
17+
18+
EXAMPLE::
19+
20+
slcli block volume-refresh VOLUME_ID SNAPSHOT_ID
21+
Refresh a duplicate VOLUME_ID with a snapshot from its parent SNAPSHOT_ID.
22+
"""
1723
block_manager = SoftLayer.BlockStorageManager(env.client)
1824
resp = block_manager.refresh_dupe(volume_id, snapshot_id, force_refresh)
1925

SoftLayer/CLI/block/set_note.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
help='Public notes related to a Storage volume')
1616
@environment.pass_env
1717
def cli(env, volume_id, note):
18-
"""Set note for an existing block storage volume."""
18+
"""Set note for an existing block storage volume.
19+
20+
EXAMPLE::
21+
22+
slcli block volume-set-note 12345678 --note 'this is my note'
23+
"""
1924
block_manager = SoftLayer.BlockStorageManager(env.client)
2025
block_volume_id = helpers.resolve_id(block_manager.resolve_ids, volume_id, 'Block Volume')
2126

0 commit comments

Comments
 (0)