Merge pull request 'apply TRY lint' (#2035) from joerg-ci into main

This commit is contained in:
clan-bot
2024-09-04 13:20:11 +00:00
36 changed files with 127 additions and 81 deletions

View File

@@ -259,7 +259,7 @@ def generate_vars(
machine, generator_name, regenerate
)
except Exception as exc:
log.error(f"Failed to generate facts for {machine.name}: {exc}")
log.exception(f"Failed to generate facts for {machine.name}")
errors += [exc]
if len(errors) > 0:
msg = f"Failed to generate facts for {len(errors)} hosts. Check the logs above"