-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53672/
-----------------------------------------------------------
Review request for Ambari, Nate Cole and Robert Levas.
Bugs: AMBARI-18863
https://issues.apache.org/jira/browse/AMBARI-18863
Repository: ambari
Description
-------
When creating an upgrade, the serialized {{UpgradeType}} is quoted causing
problems with the python code:
{code}
"commandParams": {
"upgrade_direction": "upgrade",
"service_package_folder": "common-services/ZOOKEEPER/3.4.5/package",
"script": "scripts/zookeeper_server.py",
"hooks_folder": "HDP/2.0.6/hooks",
"upgrade_type": "\"host_ordered_upgrade\"",
{code}
The problem is the Gson, when converting the enum into a String, is giving back
a JSON-ready String which includes the quotes.
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
1713b64
Diff: https://reviews.apache.org/r/53672/diff/
Testing
-------
Verified that the serialized value is corrected.
Thanks,
Jonathan Hurley