Merge "Refactor of domain_name_from_id"

This commit is contained in:
Jenkins
2016-01-14 20:26:17 +00:00
committed by Gerrit Code Review

View File

@@ -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