fix variable name conflict
diff --git a/xos/openstack_observer/steps/sync_ports.py b/xos/openstack_observer/steps/sync_ports.py
index 15fd4a1..b1a5e44 100644
--- a/xos/openstack_observer/steps/sync_ports.py
+++ b/xos/openstack_observer/steps/sync_ports.py
@@ -178,10 +178,10 @@
client = OpenStackClient(controller=controller, **auth) # cacert=self.config.nova_ca_ssl_cert,
driver = OpenStackDriver(client=client)
- port = driver.shell.quantum.create_port({"port": {"network_id": cn.net_id}})["port"]
- port.port_id = port["id"]
- if port["fixed_ips"]:
- port.ip = port["fixed_ips"][0]["ip_address"]
+ neutron_port = driver.shell.quantum.create_port({"port": {"network_id": cn.net_id}})["port"]
+ port.port_id = neutron_port["id"]
+ if neutron_port["fixed_ips"]:
+ port.ip = neutron_port["fixed_ips"][0]["ip_address"]
except:
logger.log_exc("failed to create neutron port for %s" % port)
continue