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

Correct machinectl become plugin function arguments #58734

Merged
merged 5 commits into from Jul 5, 2019

Conversation

jb3
Copy link
Contributor

@jb3 jb3 commented Jul 4, 2019

SUMMARY

This pull request resolves a couple of bugs within the machinectl become plugin introduced when it was moved from the hardcoded setup to the modular setup with ansible 2.8.

  • Changed a function call to _get_option to get_option to prevent an AttributeError.
  • Changed an argument to get_option from "flags" to "become_flags" to prevent ansible.errors.AnsibleError.
ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

become

@ansibot ansibot added affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. community_review In order to be merged, this PR must follow the community review workflow. needs_triage Needs a first human triage before being processed. new_contributor This PR is the first contribution by a new community member. support:community This issue/PR relates to code supported by the Ansible community. labels Jul 4, 2019
@felixfontein felixfontein requested a review from sivel July 4, 2019 19:44
@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Jul 4, 2019
@bcoca bcoca merged commit 4f642da into ansible:devel Jul 5, 2019
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Jul 5, 2019
jb3 added a commit to jb3/ansible that referenced this pull request Jul 5, 2019
* Correct get_option function name and change flags to become_flags

* Remove the '--' from the returned command

* add changelog fragment

* change changelog fragment description

* move the -q argument to machinectl before the shell argument to resolve issues with machinectl v230 (see ansible#56571)

(cherry picked from commit 4f642da)
@jb3 jb3 deleted the correct-machinectl-function-arguments branch July 16, 2019 08:51
abadger pushed a commit that referenced this pull request Jul 16, 2019
* Correct machinectl become plugin function arguments (#58734)

* Correct get_option function name and change flags to become_flags

* Remove the '--' from the returned command

* add changelog fragment

* change changelog fragment description

* move the -q argument to machinectl before the shell argument to resolve issues with machinectl v230 (see #56571)

(cherry picked from commit 4f642da)

* Update PR number in changelog fragment

* Revert "Update PR number in changelog fragment"

This reverts commit 38e6b47.
@ansible ansible locked and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. new_contributor This PR is the first contribution by a new community member. support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants