Comment 3 for bug 1845616

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-nova (master)

Reviewed: https://review.opendev.org/685393
Committed: https://git.openstack.org/cgit/openstack/puppet-nova/commit/?id=edcd126dab0cd2fcca524d3838205f6c3c644257
Submitter: Zuul
Branch: master

commit edcd126dab0cd2fcca524d3838205f6c3c644257
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 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.

    Closes-Bug: #1845616
    Depends-On: https://review.opendev.org/#/c/685537/
    Change-Id: I7e8fef9fdb913e53fa459ce09577f574fd059a13