summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-07-13 14:54:56 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-07-13 14:54:56 -0700
commit78a85240aac5b252bae4108514681bed7340c034 (patch)
treee560e8b798f90a4941467d87405d664a6f247dd5 /cloudinit
parenta30eebe6b0d1e99794f01f7a9c73e79f70dfaffd (diff)
downloadvyos-cloud-init-78a85240aac5b252bae4108514681bed7340c034.tar.gz
vyos-cloud-init-78a85240aac5b252bae4108514681bed7340c034.zip
Remove another stray dict comprehension
Diffstat (limited to 'cloudinit')
-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 d52cb56a..2d001061 100644
--- a/cloudinit/sources/helpers/openstack.py
+++ b/cloudinit/sources/helpers/openstack.py
@@ -542,8 +542,8 @@ def convert_net_json(network_json=None, known_macs=None):
config = []
for link in links:
subnets = []
- cfg = {k: v for k, v in link.items()
- if k in valid_keys['physical']}
+ cfg = dict((k, v) for k, v in link.items()
+ if k in valid_keys['physical'])
# 'name' is not in openstack spec yet, but we will support it if it is
# present. The 'id' in the spec is currently implemented as the host
# nic's name, meaning something like 'tap-adfasdffd'. We do not want