mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-17 22:01:07 -07:00
get_option instead of internal dict (#33191)
* get_option instead of internal dict * fix slack issue * not a pugin, revert get_option
This commit is contained in:
parent
9e9f2b9ad5
commit
22d983c5c1
12 changed files with 50 additions and 60 deletions
|
@ -84,6 +84,9 @@ class CallbackBase(AnsiblePlugin):
|
|||
def set_option(self, k, v):
|
||||
self._plugin_options[k] = v
|
||||
|
||||
def get_option(self, k):
|
||||
return self._plugin_options[k]
|
||||
|
||||
def set_options(self, task_keys=None, var_options=None, direct=None):
|
||||
''' This is different than the normal plugin method as callbacks get called early and really don't accept keywords.
|
||||
Also _options was already taken for CLI args and callbacks use _plugin_options instead.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue