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:
Guillaume Espanel 2017-01-09 11:07:16 +01:00
parent 1c858ea907
commit 3bd8c9376b
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {