Skip to content

Commit 11ac0dc

Browse files
Merge pull request #1619 from edsonarios/issue1616-vlan
Improved successful response to command - slcli vlan cancel
2 parents 96ec44d + 53acb2a commit 11ac0dc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

SoftLayer/CLI/vlan/cancel.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ def cli(env, identifier):
2525
raise exceptions.CLIAbort(reasons)
2626
item = mgr.get_vlan(identifier).get('billingItem')
2727
if item:
28-
mgr.cancel_item(item.get('id'),
29-
True,
30-
'Cancel by cli command',
31-
'Cancel by cli command')
28+
if mgr.cancel_item(item.get('id'),
29+
True,
30+
'Cancel by cli command',
31+
'Cancel by cli command'):
32+
env.fout("VLAN {} was cancelled.".format(identifier))
3233
else:
3334
raise exceptions.CLIAbort(
3435
"VLAN is an automatically assigned and free of charge VLAN,"

0 commit comments

Comments
 (0)