Open
Description
When trying to use the as function on centos 5.11 I consistent get this bash error
DEBUG [a0994eb0] sh: -c: line 0: unexpected EOF while looking for matching `"'
DEBUG [a0994eb0] sh: -c: line 1: syntax error: unexpected end of file
simple test
on roles(:whatever) do
as(user: 'someuser', group: 'somegroup' ) do
execute :ls
end
do
Command that is being ran
sudo -u someuser -- sh -c 'sg somegroup -c \"/usr/bin/env ls\"'
From what I can tell it's properly escaped. It works fine when only suppling the user and not a group.
Metadata
Metadata
Assignees
Labels
No labels