1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Thomas ten Cate 2019-05-23 22:01:40 +02:00 committed by Brian Coca
parent 8cee127ee4
commit 3b16036ce2

View file

@ -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)