parent
ca941ec632
commit
015b922c1f
1 changed files with 1 additions and 2 deletions
|
@ -336,7 +336,6 @@ class PlayContext(Base):
|
||||||
becomecmd = None
|
becomecmd = None
|
||||||
randbits = ''.join(chr(random.randint(ord('a'), ord('z'))) for x in xrange(32))
|
randbits = ''.join(chr(random.randint(ord('a'), ord('z'))) for x in xrange(32))
|
||||||
success_key = 'BECOME-SUCCESS-%s' % randbits
|
success_key = 'BECOME-SUCCESS-%s' % randbits
|
||||||
#executable = executable or '$SHELL'
|
|
||||||
success_cmd = pipes.quote('echo %s; %s' % (success_key, cmd))
|
success_cmd = pipes.quote('echo %s; %s' % (success_key, cmd))
|
||||||
|
|
||||||
if self.become_method == 'sudo':
|
if self.become_method == 'sudo':
|
||||||
|
@ -381,7 +380,7 @@ class PlayContext(Base):
|
||||||
|
|
||||||
self.prompt = prompt
|
self.prompt = prompt
|
||||||
self.success_key = success_key
|
self.success_key = success_key
|
||||||
return ('%s -c ' % executable) + pipes.quote(becomecmd)
|
return ('%s -c %s' % (executable, pipes.quote(becomecmd)))
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue