Console error on running chef-client

If i am running a chef resource say

execute ‘xyaz’ do
cwd aaa
command "su - oracle -c “any command”"
end

The command will run fine but it gives error on console on running chef client
stty: standard input: Invalid argument

How can we handle this error