Fix Exists function for network type
Change-Id: I269de5c61fd79c3b61b3b60054c94007e54e41d2
This commit is contained in:
parent
ffe3b3a50e
commit
acb3bf1fb3
@ -53,7 +53,7 @@ Puppet::Type.type(:midonet_network).provide(:midonet_api_caller) do
|
||||
|
||||
tenants = call_get_tenant(resource[:tenant_name])
|
||||
if tenants.empty?
|
||||
return
|
||||
raise "Tenant with specified name #{resource[:tenant_name]} does not exist"
|
||||
end
|
||||
tenant_id = tenant[0]['id']
|
||||
network = call_get_network(resource[:netname],tenant_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user