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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,2 @@
bugfixes:
- machinectl become plugin - correct bugs which induced errors on plugin usage
6 changes: 3 additions & 3 deletions lib/ansible/plugins/become/machinectl.py
Expand Up @@ -81,7 +81,7 @@ def build_become_command(self, cmd, shell):
if not cmd:
return cmd

become = self._get_option('become_exe') or self.name
flags = self.get_option('flags') or ''
become = self.get_option('become_exe') or self.name
flags = self.get_option('become_flags') or ''
user = self.get_option('become_user') or ''
return '%s shell -q %s %s@ -- %s' % (become, flags, user, cmd)
return '%s -q shell %s %s@ %s' % (become, flags, user, cmd)