mirror of
https://github.com/gryf/boxpy.git
synced 2025-12-19 21:47:59 +01:00
Fix issue with condition for extra data
This commit is contained in:
2
box.py
2
box.py
@@ -1193,7 +1193,7 @@ def vmcreate(args, conf=None):
|
|||||||
return 4
|
return 4
|
||||||
|
|
||||||
for key in ('distro', 'hostname', 'key', 'version', 'image'):
|
for key in ('distro', 'hostname', 'key', 'version', 'image'):
|
||||||
if not getattr(conf, key) is None:
|
if getattr(conf, key) is None:
|
||||||
continue
|
continue
|
||||||
if not vbox.setextradata(key, getattr(conf, key)):
|
if not vbox.setextradata(key, getattr(conf, key)):
|
||||||
return 5
|
return 5
|
||||||
|
|||||||
Reference in New Issue
Block a user