Skip to content

Commit

Permalink
Fix "Invalid path '/etc/images'" issue (#831)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt committed Sep 6, 2024
1 parent e69398a commit 76f16d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openstack_image_manager/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 76f16d3

Please sign in to comment.