Fix handling of ensure_absent_val
When :array_matching => :all is used for value, the values comes in form of array even when they are passed as single string and so <SERVICE DEFAULT> mechanism does not currently work without hack on each inherited resource. This is required for I95cf32c3211bc4498eaa68e6e748a27dfd9af0fa to pass acceptance tests. Change-Id: Ibbc8a376496b8120d7c1d87f7a9005024ae14984
This commit is contained in:
parent
bad1c6514a
commit
b3f0b0a810
@ -65,7 +65,13 @@ Puppet::Type.type(:openstack_config).provide(:ruby) do
|
||||
end
|
||||
|
||||
def ensure_absent_val
|
||||
resource[:ensure_absent_val]
|
||||
# :array_matching => :all values comes in form of array even when they
|
||||
# are passed as single string
|
||||
if resource[:value].kind_of?(Array) and not resource[:ensure_absent_val].kind_of?(Array)
|
||||
[resource[:ensure_absent_val]]
|
||||
else
|
||||
resource[:ensure_absent_val]
|
||||
end
|
||||
end
|
||||
|
||||
def file_path
|
||||
|
Loading…
x
Reference in New Issue
Block a user