Browse Source

Filter out direct_url from image properties

The direct_url property is set by glance-api and it is not allowed
to update the parameter from client side. This change ensures that
the property is filtered out.

Note that this property is visible only when show_image_direct_url is
True, thus the problem has not been detected in the current acceptance
test which use show_image_direct_url=False.

Change-Id: Ief5cf6c6e4767516ff152f9ee5487fc52854e298
changes/25/775325/3
Takashi Kajinami 6 months ago
parent
commit
2e5e78de0e
  1. 2
      lib/puppet/provider/glance_image/openstack.rb

2
lib/puppet/provider/glance_image/openstack.rb

@ -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', 'stores']
hidden = ['os_hash_algo', 'os_hash_value', 'os_hidden', 'direct_url', 'stores']
rv = props.select { |k, v| not hidden.include?(k) }
return rv
end

Loading…
Cancel
Save