Fix unassociated floating list
Fix flame crash when it can't find the server associated to a floating IP. Change-Id: I557f118b0cea6551e3a049344035e7752954a252
This commit is contained in:
parent
1c858ea907
commit
3bd8c9376b
|
@ -651,7 +651,7 @@ class TemplateGenerator(object):
|
|||
else:
|
||||
if not self.exclude_servers and ip['port_id']:
|
||||
device = self.ports[ip['port_id']][1]['device_id']
|
||||
if device and self.servers[device]:
|
||||
if device and self.servers.get(device):
|
||||
server = self.servers[device]
|
||||
server_resource_name = "server_%d" % server[0]
|
||||
properties = {
|
||||
|
|
Loading…
Reference in New Issue