Browse Source

[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
changes/65/763965/1
Takashi Kajinami 7 months ago
parent
commit
38ce19bf4a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/puppet/provider/glance_image/openstack.rb

+ 1
- 1
lib/puppet/provider/glance_image/openstack.rb 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


Loading…
Cancel
Save