ldoktor/autotest — comment on commit 6706ecda9abce2c9d9f3c811f6f35ebd008dce3a
File: client/virt/kvm_vm.py line 653
By ldoktor:

My other idea (and probably better one) is like this:

def _add_option(option, value, value_type=str):
if value_type is bool:
if value == 'yes':
elif value == 'no':
else
return ""
...

...
- image_params.get("image_snapshot") == "yes",
+ image_params.get("image_snapshot"),
...
...
- cmd += _add_option("snapshot", snapshot)
+ cmd += _add_option("snapshot", snapshot, bool)
...