copr: make this work with ansible@F27

This commit is contained in:
Miroslav Suchý 2017-12-07 10:30:36 +01:00
parent afc3c1eb12
commit 6f77265724

View file

@ -13,12 +13,12 @@ def nova_result_to_builder_ip(nova_result, network_name):
def network_name_to_id(network_name, username, password, tenant_name, auth_url):
nt = Client('2', username, password, tenant_name, auth_url)
return nt.networks.find(label=network_name).id
return nt.neutron.find_network(network_name).id
def image_name_to_id(image_name, username, password, tenant_name, auth_url):
nt = Client('2', username, password, tenant_name, auth_url)
return nt.images.find(name=image_name).id
return nt.glance.find_image(image_name).id
def flavor_name_to_id(flavor_name, username, password, tenant_name, auth_url):