This is an automated email from the ASF dual-hosted git repository.
jonathanhurley 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 71915a4 AMBARI-23256 Ambari-agent setting permission of .hash files
to 666 (#681)
71915a4 is described below
commit 71915a45bde4b4f91654f692dc855c7885fac740
Author: Akhil S Naik <[email protected]>
AuthorDate: Fri Mar 23 01:00:07 2018 +0530
AMBARI-23256 Ambari-agent setting permission of .hash files to 666 (#681)
---
ambari-agent/src/main/python/ambari_agent/FileCache.py | 2 +-
ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ambari-agent/src/main/python/ambari_agent/FileCache.py
b/ambari-agent/src/main/python/ambari_agent/FileCache.py
index 4d24de9..780a12b 100644
--- a/ambari-agent/src/main/python/ambari_agent/FileCache.py
+++ b/ambari-agent/src/main/python/ambari_agent/FileCache.py
@@ -268,7 +268,7 @@ class FileCache():
try:
with open(hash_file, "w") as fh:
fh.write(new_hash)
- os.chmod(hash_file, 0o666)
+ os.chmod(hash_file, 0o644)
except Exception, err:
raise CachingException("Can not write to file {0} :
{1}".format(hash_file,
str(err)))
diff --git a/ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py
b/ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py
index 06d16fa..64600c8 100644
--- a/ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py
+++ b/ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py
@@ -248,7 +248,7 @@ class ResourceFilesKeeper():
try:
with open(hash_file, "w") as fh:
fh.write(new_hash)
- os.chmod(hash_file, 0o755)
+ os.chmod(hash_file, 0o644)
except Exception, err:
raise KeeperException("Can not write to file {0} : {1}".format(hash_file,
str(err)))
--
To stop receiving notification emails like this one, please contact
[email protected].