mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Keep machinectl from parsing options of cmd (#56572)
This is needed on machinectl versions prior to v231 (d6c3537ea9 to be precise).
Fixes #56571
This commit is contained in:
committed by
Brian Coca
parent
8cee127ee4
commit
3b16036ce2
@@ -84,4 +84,4 @@ class BecomeModule(BecomeBase):
|
||||
become = self._get_option('become_exe') or self.name
|
||||
flags = self.get_option('flags') or ''
|
||||
user = self.get_option('become_user') or ''
|
||||
return '%s shell -q %s %s@ %s' % (become, flags, user, cmd)
|
||||
return '%s shell -q %s %s@ -- %s' % (become, flags, user, cmd)
|
||||
|
||||
Reference in New Issue
Block a user