|
@@ -138,7 +138,7 @@ def _call(command, logoutput=None, throw_on_failure=True,
|
|
|
command = command.replace(placeholder, replacement.format(env_str=env_str))
|
|
|
|
|
|
master_fd, slave_fd = pty.openpty()
|
|
|
- Logger.info(command) # TODO: remove this before commit
|
|
|
+
|
|
|
# --noprofile is used to preserve PATH set for ambari-agent
|
|
|
subprocess_command = ["/bin/bash","--login","--noprofile","-c", command]
|
|
|
proc = subprocess.Popen(subprocess_command, bufsize=1, stdout=slave_fd, stderr=subprocess.STDOUT,
|