vars: don't print stack trace if generator fails
This commit is contained in:
@@ -404,7 +404,7 @@ def generate_vars(
|
|||||||
)
|
)
|
||||||
machine.flush_caches()
|
machine.flush_caches()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
log.exception(f"Failed to generate facts for {machine.name}")
|
log.error(f"Failed to generate facts for {machine.name}: {exc}") # noqa
|
||||||
errors += [exc]
|
errors += [exc]
|
||||||
if len(errors) > 0:
|
if len(errors) > 0:
|
||||||
msg = f"Failed to generate facts for {len(errors)} hosts. Check the logs above"
|
msg = f"Failed to generate facts for {len(errors)} hosts. Check the logs above"
|
||||||
|
|||||||
Reference in New Issue
Block a user