1
0
mirror of https://github.com/gryf/boxpy.git synced 2025-12-18 21:10:17 +01:00

Fix issue with condition for extra data

This commit is contained in:
2022-11-16 09:11:27 +01:00
parent e6d4d8ab7a
commit 8252e189cc

2
box.py
View File

@@ -1193,7 +1193,7 @@ def vmcreate(args, conf=None):
return 4
for key in ('distro', 'hostname', 'key', 'version', 'image'):
if not getattr(conf, key) is None:
if getattr(conf, key) is None:
continue
if not vbox.setextradata(key, getattr(conf, key)):
return 5