Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to job result logger from custom functions #807

Open
jeffkala opened this issue Sep 10, 2024 · 1 comment
Open

Access to job result logger from custom functions #807

jeffkala opened this issue Sep 10, 2024 · 1 comment

Comments

@jeffkala
Copy link
Contributor

Environment

  • Nautobot version: 2.2.0+
  • nautobot-golden-config version: future

Proposed Functionality

in the compliance_on_save and remediation_on_save allow for the ability to pass the job-result logger to the custom function.

Use Case

Writing a custom remediation or custom compliance function you can create a logger, but accessing the original job result isn't available, this can make logging in custom functions less useful in environments where the worker logs are not available to ordinary "users" of nautobot.

@emdeefive
Copy link
Contributor

Speaking with a client, in addition to the job-result logger being passed into the custom function, it would also be useful to have the user running the job also passed in to the customer function, if possible. The client proposed a use-case where users had read access to all devices in Nautobot but would like to restrict some users from making changes to some critical devices when using custom compliance with remediation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants