Skip to content

Commit f8b596d

Browse files
Ramkishor ChaladiRamkishor Chaladi
authored andcommitted
Example was fixed
1 parent db7a4ed commit f8b596d

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

SoftLayer/CLI/block/snapshot/set_notify_status.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ def cli(env, volume_id, enable):
2020
"""Enables/Disables snapshot space usage threshold warning for a given volume."""
2121
block_manager = SoftLayer.BlockStorageManager(env.client)
2222

23-
status = block_manager.set_volume_snapshot_notification(volume_id, enable)
23+
block_manager.set_volume_snapshot_notification(volume_id, enable)
2424

25-
if status:
26-
click.echo(
25+
click.echo(
2726
'Snapshots space usage threshold warning notification has bee set to %s for volume %s'
2827
% (enable, volume_id))

SoftLayer/CLI/block/subnets/assign.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@
1212
help="ID of the subnets to assign; e.g.: --subnet-id 1234")
1313
@environment.pass_env
1414
def cli(env, access_id, subnet_id):
15-
"""Assign block storage subnets to the given host id.
15+
"""EXAMPLE:
16+
17+
slcli block subnets-assign 111111 --subnet-id 222222
18+
slcli block subnets-assign 111111 --subnet-id 222222 --subnet-id 333333
19+
ACCESS_ID is the host_id obtained by: softlayer slcli block access-list <volume_id>
20+
21+
Assign block storage subnets to the given host id.
1622
1723
access_id is the host_id obtained by: slcli block access-list <volume_id>
1824

SoftLayer/CLI/block/subnets/list.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919
@click.argument('access_id', type=int)
2020
@environment.pass_env
2121
def cli(env, access_id):
22-
"""List block storage assigned subnets for the given host id.
22+
"""Example:
23+
24+
slcli block subnets-list 12345678
25+
ACCESS_ID is the host_id obtained by: softlayer slcli block access-list <volume_id>
26+
27+
List block storage assigned subnets for the given host id.
2328
2429
access_id is the host_id obtained by: slcli block access-list <volume_id>
2530
"""

SoftLayer/CLI/block/subnets/remove.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
help="ID of the subnets to remove; e.g.: --subnet-id 1234")
1313
@environment.pass_env
1414
def cli(env, access_id, subnet_id):
15-
"""Remove block storage subnets for the given host id.
15+
"""Example:
16+
17+
slcli block subnets-remove 111111 --subnet-id 222222
18+
slcli block subnets-remove 111111 --subnet-id 222222 --subnet-id 333333
19+
ACCESS_ID is the host_id obtained by: slcli block access-list <volume_id>
20+
21+
22+
Remove block storage subnets for the given host id.
1623
1724
access_id is the host_id obtained by: slcli block access-list <volume_id>
1825

0 commit comments

Comments
 (0)