Fix bad handling of Nonetype
This commit is contained in:
parent
816dbac912
commit
c9b8355ff0
|
@ -3635,7 +3635,7 @@ class API_Provisioner_Template_System_Root(Resource):
|
||||||
else:
|
else:
|
||||||
vnc = False
|
vnc = False
|
||||||
vnc_bind = None
|
vnc_bind = None
|
||||||
if bool(strtobool(reqargs.get('node_autostart', False))):
|
if reqargs.get('node_autostart', None) and bool(strtobool(reqargs.get('node_autostart', False))):
|
||||||
node_autostart = True
|
node_autostart = True
|
||||||
else:
|
else:
|
||||||
node_autostart = False
|
node_autostart = False
|
||||||
|
@ -3768,7 +3768,7 @@ class API_Provisioner_Template_System_Element(Resource):
|
||||||
else:
|
else:
|
||||||
vnc = False
|
vnc = False
|
||||||
vnc_bind = None
|
vnc_bind = None
|
||||||
if bool(strtobool(reqargs.get('node_autostart', False))):
|
if reqargs.get('node_autostart', None) and bool(strtobool(reqargs.get('node_autostart', False))):
|
||||||
node_autostart = True
|
node_autostart = True
|
||||||
else:
|
else:
|
||||||
node_autostart = False
|
node_autostart = False
|
||||||
|
|
Loading…
Reference in New Issue