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:
parent
5791916206
commit
2e5e78de0e
@ -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…
Reference in New Issue
Block a user