diff options
author | Joshua Harlow <harlowja@gmail.com> | 2016-07-13 15:04:07 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2016-07-13 15:04:07 -0700 |
commit | f5ea273e36615cfbbe8f35b3963935e75e22c4a1 (patch) | |
tree | dd0ed8632d7ed114b349948a0c0cd19c46ca53a3 | |
parent | 78a85240aac5b252bae4108514681bed7340c034 (diff) | |
download | vyos-cloud-init-f5ea273e36615cfbbe8f35b3963935e75e22c4a1.tar.gz vyos-cloud-init-f5ea273e36615cfbbe8f35b3963935e75e22c4a1.zip |
Another stray occurence of a dict comprehension being removed
-rw-r--r-- | cloudinit/sources/helpers/openstack.py | 4 |
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({ |