Skip to content

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

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.

@sonarqubecloud
Copy link

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