[Ussuri Only] Ignore read-only "self" propery of images

This change makes sure that the "self" property is ignored when
managing glance images, because the propery is read-only and not
supposed to be updated.

This issue was introduced by the switch to openstacksdk which was done
in openstackclient during Ussuri cycle so this doesn't affect Train
and older releases. In addition uring the following patch was merged in
openstacksdk during Victoria cycle and "openstack image show" no longer
includes the self propery in image properties since Victoria. So this
change is submitted only for Ussuri.

[1] https://review.opendev.org/c/726626

Change-Id: Ie43ffe5075fac12be6dcae2771f9acde3cc16063
Closes-Bug: #1905404
This commit is contained in:
Takashi Kajinami 2020-11-24 21:13:25 +09:00
parent 5bd3a6659b
commit 38ce19bf4a
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ Puppet::Type.type(:glance_image).provide(
if props == nil
return nil
end
hidden = ['os_hash_algo', 'os_hash_value', 'os_hidden']
hidden = ['os_hash_algo', 'os_hash_value', 'os_hidden', 'self']
rv = props.select { |k, v| not hidden.include?(k) }
return rv
end