Skip to content

Commit a4da9dc

Browse files
author
Nathan Beittenmiller
committed
Bug fixes from testing the CLI
1 parent bc9c164 commit a4da9dc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

SoftLayer/CLI/modules/bmetal.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ def execute(cls, client, args):
346346
disk_prices.append(disk_price)
347347

348348
if not disk_prices:
349-
disk_price = cls._get_default_value(bmi_options, 'disk0')
349+
disk_prices.append(cls._get_default_value(bmi_options, 'disk0'))
350+
351+
order['disks'] = disk_prices
350352

351353
# Set the port speed
352354
port_speed = args.get('--network') or 10
@@ -399,7 +401,6 @@ def execute(cls, client, args):
399401
"This action will incur charges on your account. Continue?"):
400402
result = mgr.place_order(**order)
401403

402-
print result
403404
t = Table(['name', 'value'])
404405
t.align['name'] = 'r'
405406
t.align['value'] = 'l'

SoftLayer/CLI/modules/hardware.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def _generate_windows_code(description):
586586

587587
class CreateHardware(CLIRunnable):
588588
"""
589-
usage: sl hardware create --hostname=HOST --domain=DOMAIN --cpu=CPU
589+
usage: sl hardware create --hostname=HOST --domain=DOMAIN --cpu=CPU
590590
--chassis=CHASSIS --memory=MEMORY --os=OS --disk=SIZE... [options]
591591
592592
Order/create a dedicated server. See 'sl hardware list-chassis' and
@@ -649,8 +649,10 @@ def execute(cls, client, args):
649649
disk_prices.append(disk_price)
650650

651651
if not disk_prices:
652-
disk_price = cls._get_default_value(ds_options, 'disk0')
652+
disk_prices.append(cls._get_default_value(ds_options, 'disk0'))
653653

654+
order['disks'] = disk_prices
655+
654656
# Set the disk controller price
655657
if args.get('--controller'):
656658
dc_price = cls._get_price_id_from_options(ds_options,

0 commit comments

Comments
 (0)