Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: ./ambari_config_update.sh --configkey key1 --action add --cluster TestCluster --configvalue value2001 ./ambari_config_update.sh --configkey key1 --action prepend --cluster TestCluster --configvalue value1 ./ambari_config_update.sh --configkey key1 --action append --cluster TestCluster --configvalue value2 Expected value: value1,value2001,value2 Current value: value1,001,value2 I think this script should do only action which is requested by user. In this case I see that there are 2 actions: s/value2// and append. Version-Release number of selected component (if applicable): Ambari 1.6.1 rhs-hadoop-install-2_29-1 How reproducible: 100%
Duplicated problem: variable substitution bug in removeValue() function.
fixed bin/ambari_config_update.sh
Tested with rhs-hadoop-install-2_44-1.el6rhs.noarch and it works. -->VERIFIED
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2015-0761.html