Merge "Handle ports with no 'created_at' attribute"

This commit is contained in:
Jenkins
2017-06-06 14:59:31 +00:00
committed by Gerrit Code Review

View File

@@ -4862,7 +4862,7 @@ class OpenStackCloud(
# select.
for port in sorted(
ports,
key=operator.itemgetter('created_at'),
key=lambda p: p.get('created_at', 0),
reverse=True):
for address in port.get('fixed_ips', list()):
try: