Skip to content

Commit 94d9784

Browse files
author
Nathan Beittenmiller
committed
PEP8 fixes
1 parent bcb0021 commit 94d9784

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

SoftLayer/CLI/modules/hardware.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ def execute(cls, client, args):
401401
item[0] for item in sorted(result[1],
402402
key=lambda x: x[0]))])
403403

404-
if (args['--gpus'] or show_all) \
405-
and ds_options['categories'].get('gpu0'):
404+
gpu_categories = ds_options['categories'].get('gpu0')
405+
if (args['--gpus'] or show_all) and gpu_categories:
406406
results = cls.get_create_options(ds_options, 'gpus')
407407

408408
for result in results:
@@ -710,7 +710,7 @@ def execute(cls, client, args):
710710
gpu1_price = cls._get_price_id_from_options(ds_options, 'gpus',
711711
args.get('--gpu1'))
712712
order['gpu1'] = gpu1_price
713-
713+
714714
# Set the port speed
715715
port_speed = args.get('--network') or 10
716716

@@ -769,7 +769,7 @@ def execute(cls, client, args):
769769
if ps and ps['is_required']:
770770
order['power_supply'] = cls._get_default_value(ds_options,
771771
'power_supply')
772-
772+
773773
# Begin output
774774
t = Table(['Item', 'cost'])
775775
t.align['Item'] = 'r'

0 commit comments

Comments
 (0)