Repository: ambari Updated Branches: refs/heads/trunk 15f6fb0a8 -> 9320e9d2a
AMBARI-5061. Ambari Upgrade stack command failed. (swagle) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9320e9d2 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9320e9d2 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9320e9d2 Branch: refs/heads/trunk Commit: 9320e9d2aef3256c5afa7c338f8daa2b3524c379 Parents: 15f6fb0 Author: Siddharth Wagle <[email protected]> Authored: Wed Mar 12 15:19:40 2014 -0700 Committer: Siddharth Wagle <[email protected]> Committed: Wed Mar 12 15:19:40 2014 -0700 ---------------------------------------------------------------------- ambari-server/src/main/python/ambari-server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/9320e9d2/ambari-server/src/main/python/ambari-server.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/python/ambari-server.py b/ambari-server/src/main/python/ambari-server.py index 7b10043..47dc99e 100755 --- a/ambari-server/src/main/python/ambari-server.py +++ b/ambari-server/src/main/python/ambari-server.py @@ -2613,7 +2613,7 @@ def run_stack_upgrade(stackName, stackVersion, repo_url, repo_url_os): command = STACK_UPGRADE_HELPER_CMD.format(jdk_path, get_conf_dir(), get_ambari_classpath(), "updateStackId", - json.dumps(stackId)) + "'" + json.dumps(stackId) + "'") (retcode, stdout, stderr) = run_os_command(command) print_info_msg("Return code from stack upgrade command, retcode = " + str(retcode)) if retcode > 0: @@ -2631,7 +2631,7 @@ def run_metainfo_upgrade(keyValueMap = None): if keyValueMap: command = STACK_UPGRADE_HELPER_CMD.format(jdk_path, get_conf_dir(), get_ambari_classpath(), 'updateMetaInfo', - json.dumps(keyValueMap)) + "'" + json.dumps(keyValueMap) + "'") (retcode, stdout, stderr) = run_os_command(command) print_info_msg("Return code from stack upgrade command, retcode = " + str(retcode)) if retcode > 0:
