Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix properties in glance_image 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 glance_image 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. Change-Id: I1829c7e59058fa72690dc08b3e2f65afcad7ea46
- Loading branch information
1 parent
a2915d3
commit 1365358
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters