This is an automated email from the ASF dual-hosted git repository.

hapylestat pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new c649e51  [AMBARI-23471] Ubuntu16: Install components exited with code 
'100' with message: debconf: delaying package configuration, since apt-utils is 
not installed (dgrinenko)
c649e51 is described below

commit c649e512b76834916ba583c28c6bad8a3c5738c4
Author: Dmitry Grinenko <[email protected]>
AuthorDate: Thu Apr 5 13:28:04 2018 +0300

    [AMBARI-23471] Ubuntu16: Install components exited with code '100' with 
message: debconf: delaying package configuration, since apt-utils is not 
installed (dgrinenko)
---
 ambari-common/src/main/python/ambari_commons/shell.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ambari-common/src/main/python/ambari_commons/shell.py 
b/ambari-common/src/main/python/ambari_commons/shell.py
index 73bcf87..d387837 100644
--- a/ambari-common/src/main/python/ambari_commons/shell.py
+++ b/ambari-common/src/main/python/ambari_commons/shell.py
@@ -25,6 +25,7 @@ import signal
 from ambari_commons import subprocess32 as subprocess
 import threading
 from contextlib import contextmanager
+import copy
 
 import time
 
@@ -282,9 +283,13 @@ def launch_subprocess(command, term_geometry=(42, 255), 
env=None):
     _logger.debug("Warning, command  \"{0}\" doesn't support sudo 
appending".format(command))
 
   is_shell = not isinstance(command, (list, tuple))
+  environ = copy.deepcopy(os.environ)
+
+  if env:
+    environ.update(env)
 
   return PopenEx(command, stdout=PIPE_PTY, stderr=subprocess.PIPE,
-                 shell=is_shell, preexec_fn=_geometry_helper, close_fds=True, 
env=env)
+                 shell=is_shell, preexec_fn=_geometry_helper, close_fds=True, 
env=environ)
 
 
 def chunks_reader(cmd, kill_timer):

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to