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

smolnar 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 42c8385  AMBARI-24785. Removed double 'sudo' invocation (#2470)
42c8385 is described below

commit 42c8385734fc943e8db3f19b208b3a08e0c09e94
Author: Sandor Molnar <[email protected]>
AuthorDate: Tue Oct 16 19:57:28 2018 +0200

    AMBARI-24785. Removed double 'sudo' invocation (#2470)
---
 ambari-common/src/main/python/resource_management/core/sudo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-common/src/main/python/resource_management/core/sudo.py 
b/ambari-common/src/main/python/resource_management/core/sudo.py
index 990b293..8a9481a 100644
--- a/ambari-common/src/main/python/resource_management/core/sudo.py
+++ b/ambari-common/src/main/python/resource_management/core/sudo.py
@@ -310,7 +310,7 @@ else:
     
   # shutil.copy replacement
   def copy(src, dst):
-    shell.checked_call(["sudo", "cp", "-r", src, dst], sudo=True)
+    shell.checked_call(["cp", "-r", src, dst], sudo=True)
 
   # os.listdir replacement
   def listdir(path):

Reply via email to