From c9b8355ff0a516c5abce6ba5f4e15d3848ec1ee8 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 3 Jan 2020 12:07:32 -0500 Subject: [PATCH] Fix bad handling of Nonetype --- client-api/pvc-api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client-api/pvc-api.py b/client-api/pvc-api.py index 1e3fd101..9e0a6e43 100755 --- a/client-api/pvc-api.py +++ b/client-api/pvc-api.py @@ -3635,7 +3635,7 @@ class API_Provisioner_Template_System_Root(Resource): else: vnc = False 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 else: node_autostart = False @@ -3768,7 +3768,7 @@ class API_Provisioner_Template_System_Element(Resource): else: vnc = False 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 else: node_autostart = False