Better handle empty script

This commit is contained in:
Joshua Boniface 2020-01-05 16:59:19 -05:00
parent 6306586ad3
commit bde0bd6238
1 changed files with 1 additions and 1 deletions

View File

@ -892,7 +892,7 @@ def create_vm(self, vm_name, vm_profile, define_vm=True, start_vm=True):
db_cur.execute(query, args)
vm_data['script'] = db_cur.fetchone()['script']
if vm_data['script']['name'] == 'empty':
if not vm_data['script']:
# We do not have a script; skip it
is_script_install = False
else: