-
Problem report
-
Resolution: Fixed
-
Minor
-
5.2.6
-
None
-
Sprint 76 (May 2021), Sprint 77 (Jun 2021)
-
0.125
Steps to reproduce:
- Create a discovery item.
- Choose key vmware.datastore.discovery.
Result:
Returns old JSON format.
{"data":[{"{#DATASTORE}":"FOO",...},{"{#DATASTORE}":"BAR",...}]}
Expected:
Return new JSON format.
[{"{#DATASTORE}":"FOO",...},{"{#DATASTORE}":"BAR",...}]
According to the documentation: "Built-in discovery keys have been updated to return an array of LLD rows at the root of JSON document."
Workaround for Preprocessing:
If you want to apply preprocessing, you have to catch this case so that you can access the elements as usual.