Ignore stores image property

Currently Glance includes "stores" image property automatically in
image show API. This property is assigned at api side and client
is not allowed to update the value.

This change ensures that the property is ignored to prevent
the glance_image resource from detecting false change because of that
read-only property.

Change-Id: I0242f13402a56cf898439fa6b0b3972da38dbebb
This commit is contained in:
Takashi Kajinami committed 2021-02-12 17:25:11 +09:00
1 parent 9f99b918f1
commit 5791916206
1 file changed
+1 -1
@@ -175,7 +175,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', 'stores']
rv = props.select { |k, v| not hidden.include?(k) }
return rv
end