Skip to content

Commit

Permalink
[AMBARI-25184] configs.py: cannot set an empty property value (apappu) (
Browse files Browse the repository at this point in the history
  • Loading branch information
apappu authored and Akhil S Naik committed Apr 11, 2019
1 parent 60dc4ff commit 4140a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ambari-server/src/main/resources/scripts/configs.py
Expand Up @@ -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]
Expand Down

0 comments on commit 4140a03

Please sign in to comment.