ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject ambari git commit: AMBARI-9423. Ambari-server setup fails on sles (aonishuk)
Date Mon, 02 Feb 2015 13:27:25 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk cd03c3279 -> 40f7acc70


AMBARI-9423. Ambari-server setup fails on sles (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/40f7acc7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/40f7acc7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/40f7acc7

Branch: refs/heads/trunk
Commit: 40f7acc709075838a950e2d73119876fe5b094af
Parents: cd03c32
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Mon Feb 2 15:27:12 2015 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon Feb 2 15:27:12 2015 +0200

----------------------------------------------------------------------
 ambari-server/src/main/python/ambari_server/serverSetup.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/40f7acc7/ambari-server/src/main/python/ambari_server/serverSetup.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/ambari_server/serverSetup.py b/ambari-server/src/main/python/ambari_server/serverSetup.py
index 8ba8647..e56b8ab 100644
--- a/ambari-server/src/main/python/ambari_server/serverSetup.py
+++ b/ambari-server/src/main/python/ambari_server/serverSetup.py
@@ -886,8 +886,12 @@ def unpack_jce_policy():
     try:
       f = zipfile.ZipFile(jce_zip_path, "r")
       zip_members = f.namelist()
+      for member in zip_members:
+        if member.endswith(os.sep):
+          os.makedirs(os.path.join(jdk_security_path, member))
+        else:
+          f.extract(member, jdk_security_path)
       unziped_jce_path = os.path.split(zip_members[len(zip_members) - 1])[0]
-      f.extractall(jdk_security_path)
     finally:
       try:
         f.close()


Mime
View raw message