We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In ruby framework, I can create custom settings like,
{ "my_custom_plugin": { "foo": true, "bar": false } }
and access them in plugin,
def foo_enabled? settings['my_custom_plugin']['foo'] end
how can it be done in python framework?
The text was updated successfully, but these errors were encountered:
Found it in the code. for anyone interested,
import utils from sensu_plugin package,
utils
sensu_plugin
from sensu_plugin import utils
and access settings using get_settings(),
get_settings()
utils.get_settings()['my_custom_plugin']['foo']
Sorry, something went wrong.
I'm going to reopen this with the intention of replicating the way this works in Ruby and making the settings available in the plugin base class.
barryorourke
No branches or pull requests
In ruby framework, I can create custom settings like,
and access them in plugin,
how can it be done in python framework?
The text was updated successfully, but these errors were encountered: