summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-07-13 15:04:07 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-07-13 15:04:07 -0700
commit6f594e40f5c265a01ffc19e9e177ce514e43fd54 (patch)
treedd0ed8632d7ed114b349948a0c0cd19c46ca53a3
parent5cd9c5afd11bab55d4ea8c2afc3d5456d4e6a94d (diff)
downloadcloud-init-6f594e40f5c265a01ffc19e9e177ce514e43fd54.tar.gz
Another stray occurence of a dict comprehension being removed
-rw-r--r--cloudinit/sources/helpers/openstack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/helpers/openstack.py b/cloudinit/sources/helpers/openstack.py
index 2d001061..2e7a1d47 100644
--- a/cloudinit/sources/helpers/openstack.py
+++ b/cloudinit/sources/helpers/openstack.py
@@ -553,8 +553,8 @@ def convert_net_json(network_json=None, known_macs=None):
for network in [n for n in networks
if n['link'] == link['id']]:
- subnet = {k: v for k, v in network.items()
- if k in valid_keys['subnet']}
+ subnet = dict((k, v) for k, v in network.items()
+ if k in valid_keys['subnet'])
if 'dhcp' in network['type']:
t = 'dhcp6' if network['type'].startswith('ipv6') else 'dhcp4'
subnet.update({