From 4140a034c015b878e92adb2dce552dbb246ddafc Mon Sep 17 00:00:00 2001 From: amarnathreddy pappu Date: Wed, 10 Apr 2019 23:07:20 -0700 Subject: [PATCH] [AMBARI-25184] configs.py: cannot set an empty property value (apappu) (#2914) --- 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 5ce739225d7..44be04bec87 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]