Repair configuration check

Use membership test instead.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-05-20 18:32:05 +02:00
parent ce0ad136aa
commit c5e404c9c6
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -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']