Skip to content

Commit c9127c1

Browse files
committed
Fixed TypeError in formations:create.
1 parent 2998a1b commit c9127c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/deis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ def layers_create(self, args):
13011301
body.update({'ssh_port': int(o)})
13021302
for opt in ('--proxy', '--runtime'):
13031303
o = args.get(opt)
1304-
if o and o.lower() in ['n', 'no', 'f', 'false', '0', 'off']:
1304+
if o and str(o).lower() in ['n', 'no', 'f', 'false', '0', 'off']:
13051305
body.update({opt.strip('-'): False})
13061306
else:
13071307
body.update({opt.strip('-'): True})
@@ -1407,7 +1407,7 @@ def layers_update(self, args):
14071407
for opt in ('--proxy', '--runtime'):
14081408
o = args.get(opt)
14091409
if o is not None:
1410-
if o.lower() in ['n', 'no', 'f', 'false', '0', 'off']:
1410+
if str(o).lower() in ['n', 'no', 'f', 'false', '0', 'off']:
14111411
body.update({opt.strip('-'): False})
14121412
else:
14131413
body.update({opt.strip('-'): True})

0 commit comments

Comments
 (0)