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
This commit is contained in:
Takashi Kajinami 2021-02-12 17:13:58 +09:00
parent 5791916206
commit 2e5e78de0e
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ Puppet::Type.type(:glance_image).provide(
if props == nil if props == nil
return nil return nil
end 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) } rv = props.select { |k, v| not hidden.include?(k) }
return rv return rv
end end