Skip to content

Commit 4166544

Browse files
committed
Bug fixed in command slcli vlan edit - Now at least one flag is required
1 parent 0c0c799 commit 4166544

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SoftLayer/CLI/vlan/edit.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import SoftLayer
77
from SoftLayer.CLI import environment
8+
from SoftLayer.CLI import exceptions
89
from SoftLayer.CLI import helpers
910

1011

@@ -22,6 +23,9 @@
2223
def cli(env, identifier, name, note, tags):
2324
"""Edit a vlan's details."""
2425

26+
if not (name or note or tags):
27+
raise exceptions.CLIAbort("Is required Name or Note or Tags")
28+
2529
new_tags = None
2630

2731
if tags:

0 commit comments

Comments
 (0)