summaryrefslogtreecommitdiff
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
commit5cd9c5afd11bab55d4ea8c2afc3d5456d4e6a94d (patch)
treee560e8b798f90a4941467d87405d664a6f247dd5
parentd2fa845101f87827e18ca477887ffe5e14e75477 (diff)
downloadcloud-init-5cd9c5afd11bab55d4ea8c2afc3d5456d4e6a94d.tar.gz
Remove another stray dict comprehension
-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