Repair configuration check
Use membership test instead. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
ce0ad136aa
commit
c5e404c9c6
@ -116,7 +116,7 @@ def main_interactive():
|
|||||||
box_name = box.get('name', None)
|
box_name = box.get('name', None)
|
||||||
box_image = box.get('image', None)
|
box_image = box.get('image', None)
|
||||||
box_file = box.get('file', '{}/Vagrantfile-Template'.format(os.path.abspath(os.path.dirname(__file__))))
|
box_file = box.get('file', '{}/Vagrantfile-Template'.format(os.path.abspath(os.path.dirname(__file__))))
|
||||||
if any([box_name, box_image, box_file]) is None:
|
if None in [box_name, box_image, box_file]:
|
||||||
_abort('Box configuration is incomplete')
|
_abort('Box configuration is incomplete')
|
||||||
box_bootstrap = box.get('bootstrap', None)
|
box_bootstrap = box.get('bootstrap', None)
|
||||||
suites = configmap['suites']
|
suites = configmap['suites']
|
||||||
|
Loading…
Reference in New Issue
Block a user