Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
The existing host JSON file format doesn't have a top-level token.
{"hostName": "host1"} {"hostName": "host2", "upgradeDomain": "ud0"} {"hostName": "host3", "adminState": "DECOMMISSIONED"} {"hostName": "host4", "upgradeDomain": "ud2", "adminState": "DECOMMISSIONED"} {"hostName": "host5", "port": 8090} {"hostName": "host6", "adminState": "IN_MAINTENANCE"} {"hostName": "host7", "adminState": "IN_MAINTENANCE", "maintenanceExpireTimeInMS": "112233"}
Instead, to conform with the JSON standard it should be like
[ {"hostName": "host1"}, {"hostName": "host2", "upgradeDomain": "ud0"}, {"hostName": "host3", "adminState": "DECOMMISSIONED"}, {"hostName": "host4", "upgradeDomain": "ud2", "adminState": "DECOMMISSIONED"}, {"hostName": "host5", "port": 8090}, {"hostName": "host6", "adminState": "IN_MAINTENANCE"}, {"hostName": "host7", "adminState": "IN_MAINTENANCE", "maintenanceExpireTimeInMS": "112233"} ]