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

module_utils fixes in collections #55118

Merged
merged 2 commits into from
Apr 11, 2019

Conversation

nitzmahone
Copy link
Member

SUMMARY
  • fixed Windows module_utils in collections
  • fixed more Python module_utils cases (from X import module)
  • "medium style" Ansiballz modules now work properly with collections (ie, non-replacer but also not using basic.py)
  • added more tests
  • split Windows/POSIX exec
ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

module_common.py

ADDITIONAL INFORMATION

* fixed Windows module_utils in collections
* fixed more Python module_utils cases (from X import module)
* "medium style" Ansiballz modules now work properly with collections (ie, non-replacer but also not using basic.py)
* added more tests
* split Windows/POSIX exec
@ansibot
Copy link
Contributor

ansibot commented Apr 11, 2019

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. needs_triage Needs a first human triage before being processed. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. windows Windows community needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Apr 11, 2019
Copy link
Contributor

@jborean93 jborean93 left a comment

Choose a reason for hiding this comment

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

Windows side looks good to me, just had an unrelated question around the shebang code smell ignore that I was mostly curious about

@@ -30,6 +30,10 @@ def main():
}

skip = set([
'test/integration/targets/collections/collection_root_user/ansible_collections/testns/testcoll/plugins/modules/win_csbasic_only.ps1',
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these getting picked up because they are not in a library dir?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep; collections calls that dir modules. I originally added the new path to the is_module check, but that broke a bunch of other things, so for the moment we'll need the ignore...

@ansibot
Copy link
Contributor

ansibot commented Apr 11, 2019

@ansibot ansibot added test This PR relates to tests. core_review In order to be merged, this PR must follow the core review workflow. and removed needs_triage Needs a first human triage before being processed. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Apr 11, 2019
@nitzmahone nitzmahone merged commit 1dc8436 into ansible:devel Apr 11, 2019
@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. windows Windows community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants