Only parse script_run_args if not None
This commit is contained in:
parent
ad45f6097f
commit
9f86f12f1a
|
@ -1543,6 +1543,7 @@ def create_vm(self, vm_name, vm_profile, define_vm=True, start_vm=True, script_r
|
||||||
script_arguments[argument_name] = argument_data
|
script_arguments[argument_name] = argument_data
|
||||||
|
|
||||||
# Parse the runtime arguments
|
# Parse the runtime arguments
|
||||||
|
if script_run_args is not None:
|
||||||
for argument in script_run_args:
|
for argument in script_run_args:
|
||||||
argument_name, argument_data = argument.split('=')
|
argument_name, argument_data = argument.split('=')
|
||||||
script_arguments[argument_name] = argument_data
|
script_arguments[argument_name] = argument_data
|
||||||
|
|
Loading…
Reference in New Issue