Initiate public_network_name to None

Otherwise, if no network is found, public_network_name won't be
defined and an exception will be raised.

Change-Id: Ida6a232b2b67e50706cfa7cd75372ff3f2f9e9f9
This commit is contained in:
Martin Kopec
2017-02-16 13:37:22 +00:00
parent 71a40accec
commit 1b6e8d1d5e

View File

@@ -670,6 +670,7 @@ def find_or_upload_image(client, image_id, image_name, allow_creation,
def create_tempest_networks(clients, conf, has_neutron, public_network_id):
label = None
public_network_name = None
# TODO(tkammer): separate logic to different func of Nova network
# vs Neutron
if has_neutron: