This is an automated email from the ASF dual-hosted git repository.
vjasani 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 23881f2357 AMBARI-25997: Improvement and Bug Fix in
ambari_server.properties.py (#3749)
23881f2357 is described below
commit 23881f23577a65de396238998e8672d6c4c5a250
Author: jialiang <[email protected]>
AuthorDate: Mon Aug 28 14:29:01 2023 +0800
AMBARI-25997: Improvement and Bug Fix in ambari_server.properties.py (#3749)
---
ambari-server/src/main/python/ambari_server/properties.py | 5 +++++
ambari-server/src/main/python/ambari_server/serverSetup.py | 2 --
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ambari-server/src/main/python/ambari_server/properties.py
b/ambari-server/src/main/python/ambari_server/properties.py
index 37d23c76e7..080d724da9 100644
--- a/ambari-server/src/main/python/ambari_server/properties.py
+++ b/ambari-server/src/main/python/ambari_server/properties.py
@@ -171,6 +171,11 @@ class Properties(object):
except KeyError:
if hasattr(self._props, name):
return getattr(self._props, name)
+ else:
+ raise NotImplementedError("The method '{}' is not
implemented.".format(name))
+
+ def __contains__(self, key):
+ return key in self._props
def sort_props(self):
tmp_props = {}
diff --git a/ambari-server/src/main/python/ambari_server/serverSetup.py
b/ambari-server/src/main/python/ambari_server/serverSetup.py
index 1a8a766efb..14b91faa53 100644
--- a/ambari-server/src/main/python/ambari_server/serverSetup.py
+++ b/ambari-server/src/main/python/ambari_server/serverSetup.py
@@ -411,8 +411,6 @@ class JDKSetup(object):
# Downloads and installs the JDK and the JCE policy archive
#
def download_and_install_jdk(self, args, properties, ambariOnly = False):
- conf_file = properties.fileName
-
jcePolicyWarn = "JCE Policy files are required for configuring Kerberos
security. If you plan to use Kerberos," \
"please make sure JCE Unlimited Strength Jurisdiction
Policy Files are valid on all hosts."
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]