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

Use get_option api from callback plugins #1142

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

Akasurde
Copy link
Member

SUMMARY

To load options, callback plugins can use get_option api.
Allow this functionality for other callback plugin.

Fixes: #1077

Signed-off-by: Abhijeet Kasurde [email protected]

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

ansible_runner/display_callback/callback/awx_display.py

To load options, callback plugins can use `get_option` api.
Allow this functionality for other callback plugin.

Fixes: ansible#1077

Signed-off-by: Abhijeet Kasurde <[email protected]>
@Akasurde Akasurde requested a review from a team as a code owner October 10, 2022 13:52
@Akasurde Akasurde closed this Jan 17, 2023
@Akasurde Akasurde reopened this Jan 17, 2023
@Akasurde
Copy link
Member Author

cc @sivel

@@ -348,6 +348,12 @@ def __init__(self):
self.play_uuids = set()
self.duplicate_play_counts = collections.defaultdict(lambda: 1)

def set_options(self, task_keys=None, var_options=None, direct=None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it would be more robust to use *args, **kwargs to work with multiple versions. I see certain checks failed, but results expired.

Copy link

sonarcloud bot commented Jul 25, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

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

Successfully merging this pull request may close these issues.

runner 2.2 breaks callbacks that use get_option
2 participants