We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96ec44d + 53acb2a commit 11ac0dcCopy full SHA for 11ac0dc
SoftLayer/CLI/vlan/cancel.py
@@ -25,10 +25,11 @@ def cli(env, identifier):
25
raise exceptions.CLIAbort(reasons)
26
item = mgr.get_vlan(identifier).get('billingItem')
27
if item:
28
- mgr.cancel_item(item.get('id'),
29
- True,
30
- 'Cancel by cli command',
31
- 'Cancel by cli command')
+ if mgr.cancel_item(item.get('id'),
+ True,
+ 'Cancel by cli command',
+ 'Cancel by cli command'):
32
+ env.fout("VLAN {} was cancelled.".format(identifier))
33
else:
34
raise exceptions.CLIAbort(
35
"VLAN is an automatically assigned and free of charge VLAN,"
0 commit comments