Skip to content

Commit 9c5b89d

Browse files
committed
Fixes --dry-run returning "Unknown arguments"
It appears --dry-run didn't work at all, but its equivalent argument, --test, does work. This seems to be a limitation of docopt. Removing --dry-run should be backwards compatible since it didn't work.
1 parent 6657ebe commit 9c5b89d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

SoftLayer/CLI/modules/globalip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class GlobalIpCreate(CLIRunnable):
7272
7373
Options:
7474
--v6 Orders IPv6
75-
--dry-run, --test Do not order the IP; just get a quote
75+
--test Do not order the IP; just get a quote
7676
"""
7777
action = 'create'
7878
options = ['confirm']

SoftLayer/CLI/modules/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ class CreateServer(CLIRunnable):
763763
-i, --postinstall=URI Post-install script to download
764764
-k KEY, --key=KEY SSH keys to assign to the root user. Can be specified
765765
multiple times.
766-
--dry-run, --test Do not create the server, just get a quote
766+
--test Do not create the server, just get a quote
767767
--vlan_public=VLAN The ID of the public VLAN on which you want the
768768
hardware placed
769769
--vlan_private=VLAN The ID of the private VLAN on which you want the

SoftLayer/CLI/modules/subnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class SubnetCreate(CLIRunnable):
6262
6363
Options:
6464
--v6 Orders IPv6
65-
--dry-run, --test Do not order the subnet; just get a quote
65+
--test Do not order the subnet; just get a quote
6666
"""
6767
action = 'create'
6868
options = ['confirm']

SoftLayer/CLI/modules/vs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ class CreateVS(CLIRunnable):
356356
--dedicated Create a dedicated VS (Virtual Server (Private Node))
357357
--san Use SAN storage instead of local disk. Applies to
358358
all disks specified with --disk.
359-
--dry-run, --test Do not create VS, just get a quote
359+
--test Do not create VS, just get a quote
360360
--export=FILE Exports options to a template file
361361
-F, --userfile=FILE Read userdata from file
362362
-i, --postinstall=URI Post-install script to download

0 commit comments

Comments
 (0)