Merge "Refactor of domain_name_from_id"
This commit is contained in:
@@ -105,10 +105,8 @@ class Puppet::Provider::Keystone < Puppet::Provider::Openstack
|
|||||||
end
|
end
|
||||||
unless @domain_hash.include?(id)
|
unless @domain_hash.include?(id)
|
||||||
name = request('domain', 'show', id)[:name]
|
name = request('domain', 'show', id)[:name]
|
||||||
@domain_hash[id] = name if name
|
err("Could not find domain with id [#{id}]") unless name
|
||||||
end
|
@domain_hash[id] = name
|
||||||
unless @domain_hash.include?(id)
|
|
||||||
err("Could not find domain with id [#{id}]")
|
|
||||||
end
|
end
|
||||||
@domain_hash[id]
|
@domain_hash[id]
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user