The list operation is looking to parse json, however stderr will include
warnings from the openstack client, like this one:
https://storyboard.openstack.org/#!/story/
2003132
Therefore parsing to json will fail. This patch changes the List
operations to only parse stdout as json.
Change-Id: Ib6dc6b99f13b3288effc5e9c2e6c5cda4636d5a7
Signed-off-by: Tim Rozet <trozet@redhat.com>
[Arguments] ${cmd}
[Documentation] Return a json list from the output of an OpenStack command.
@{list} = BuiltIn.Create List
- ${json} = OpenStack CLI ${cmd}
- @{list} = RequestsLibrary.To Json ${json}
+ ${result} = Run Process With Logging And Status Check ${cmd}
+ @{list} = RequestsLibrary.To Json ${result.stdout}
BuiltIn.Log ${list}
[Return] @{list}