Fix properties in nova_aggregate provider for osc >= 4.0.0
Similar to I6a68505d15473b140c85a199a09d2fee45864800
Openstackclient 4.0.0 changed the way some properties are displayed
on screen.
Old:
...,"Properties"
...,"foo='bar'"
New:
...,"Properties"
...,"{u'foo': u'bar'}"
or
...,"{'foo': 'bar'}"
This is breaking idempotency on the nova_aggregate provider, since it
does not detect them correctly. This patch aims at fixing this, by
trying to detect the new format, and using JSON parsing in that case.
Reviewed: https:/ /review. opendev. org/685393 /git.openstack. org/cgit/ openstack/ puppet- nova/commit/ ?id=edcd126dab0 cd2fcca524d3838 205f6c3c644257
Committed: https:/
Submitter: Zuul
Branch: master
commit edcd126dab0cd2f cca524d3838205f 6c3c644257
Author: Emilien Macchi <email address hidden>
Date: Fri Sep 27 12:08:58 2019 -0400
Fix properties in nova_aggregate provider for osc >= 4.0.0
Similar to I6a68505d15473b 140c85a199a09d2 fee45864800
Openstackclient 4.0.0 changed the way some properties are displayed
on screen.
Old: ,"Properties"
...
...,"foo='bar'"
New: ,"Properties"
...
...,"{u'foo': u'bar'}"
or
...,"{'foo': 'bar'}"
This is breaking idempotency on the nova_aggregate provider, since it
does not detect them correctly. This patch aims at fixing this, by
trying to detect the new format, and using JSON parsing in that case.
Closes-Bug: #1845616 /review. opendev. org/#/c/ 685537/ 53fa459ce09577f 574fd059a13
Depends-On: https:/
Change-Id: I7e8fef9fdb913e