Skip to content

Commit cdd1d44

Browse files
Merge pull request #1709 from edsonarios/issue1708
Command slcli vlan edit accept that we do not send any parameters
2 parents cd9db74 + c5cedc1 commit cdd1d44

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 any([name, note, tags]):
27+
raise exceptions.CLIAbort("At least one option is required")
28+
2529
new_tags = None
2630

2731
if tags:

0 commit comments

Comments
 (0)