This is an automated email from the ASF dual-hosted git repository. vjasani pushed a commit to branch branch-2.7 in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push: new 030ffdadc8 AMBARI-25997: Improvement and Bug Fix in ambari_server.properties.py (#3748) 030ffdadc8 is described below commit 030ffdadc83ab351d1f5c2978deb32513e7a7308 Author: jialiang <2510095...@qq.com> AuthorDate: Mon Aug 28 14:29:43 2023 +0800 AMBARI-25997: Improvement and Bug Fix in ambari_server.properties.py (#3748) --- 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 a32ac38765..b4c64f6b2e 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: commits-unsubscr...@ambari.apache.org For additional commands, e-mail: commits-h...@ambari.apache.org