Implemented that schemas are recognized

This commit is contained in:
2025-07-15 22:22:22 +02:00
parent 3fed9eb75a
commit b6eb73dee4
8 changed files with 151 additions and 20 deletions

View File

@@ -53,7 +53,8 @@ class DefaultsGenerator:
continue
if not config_file.exists():
self.log(f"Skipping {role_name}: config/main.yml missing")
self.log(f"Config missing for {role_name}, adding empty defaults for '{application_id}'")
result["defaults_applications"][application_id] = {}
continue
config_data = load_yaml_file(config_file)
@@ -106,4 +107,4 @@ if __name__ == "__main__":
roles_dir = (cwd / args.roles_dir).resolve()
output_file = (cwd / args.output_file).resolve()
DefaultsGenerator(roles_dir, output_file, args.verbose, args.timeout).run()
DefaultsGenerator(roles_dir, output_file, args.verbose, args.timeout).run()