From 76f16d3af93f88350693d58380abbb7df6cc19d3 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Fri, 6 Sep 2024 10:53:08 +0200 Subject: [PATCH] Fix "Invalid path '/etc/images'" issue (#831) Signed-off-by: Christian Berendt --- openstack_image_manager/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_image_manager/main.py b/openstack_image_manager/main.py index 1f73318a..3610cc0d 100644 --- a/openstack_image_manager/main.py +++ b/openstack_image_manager/main.py @@ -1122,11 +1122,12 @@ def validate_yaml_schema(self): except Exception: # We are a cloned repo schema = yamale.make_schema("etc/schema.yaml") + try: validation_error_log = [] for file in os.listdir(self.CONF.images): try: - data = yamale.make_data(self.CONF.images + file) + data = yamale.make_data(os.path.join(self.CONF.images, file)) yamale.validate(schema, data) except YamaleError as e: for result in e.results: