This is an automated email from the ASF dual-hosted git repository. wuzhiguo 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 649760789e AMBARI-25184: configs.py cannot set an empty property value (#3442) 649760789e is described below commit 649760789ef38fa67ee2552e04794c98d71e224d Author: Zhiguo Wu <wuzhi...@apache.org> AuthorDate: Fri Nov 4 11:18:09 2022 +0800 AMBARI-25184: configs.py cannot set an empty property value (#3442) --- ambari-server/src/main/resources/scripts/configs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ambari-server/src/main/resources/scripts/configs.py b/ambari-server/src/main/resources/scripts/configs.py index 5ce739225d..44be04bec8 100644 --- a/ambari-server/src/main/resources/scripts/configs.py +++ b/ambari-server/src/main/resources/scripts/configs.py @@ -349,7 +349,7 @@ def main(): accessor = api_accessor(host, user, password, protocol, port, options.unsafe) if action == SET_ACTION: - if not options.file and (not options.key or not options.value): + if not options.file and (not options.key or options.value is None): parser.error("You should use option (-f) to set file where entire configurations are saved OR (-k) key and (-v) value for one property") if options.file: action_args = [options.file] --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@ambari.apache.org For additional commands, e-mail: commits-h...@ambari.apache.org