summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-07-13 15:18:46 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-07-13 15:18:46 -0700
commit333eea5105956c978043579a49d935af6d3ceff2 (patch)
tree2b29d61a049cf2bb08b59b924d0fa30e0020347c /cloudinit
parentba55775fbd18452d79d5962c912995ac36567dc2 (diff)
downloadvyos-cloud-init-333eea5105956c978043579a49d935af6d3ceff2.tar.gz
vyos-cloud-init-333eea5105956c978043579a49d935af6d3ceff2.zip
Fix SmartOS datasource usage of dict comprehensions
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/sources/DataSourceSmartOS.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cloudinit/sources/DataSourceSmartOS.py b/cloudinit/sources/DataSourceSmartOS.py
index 08bc132b..ccc86883 100644
--- a/cloudinit/sources/DataSourceSmartOS.py
+++ b/cloudinit/sources/DataSourceSmartOS.py
@@ -718,8 +718,8 @@ def convert_smartos_network_data(network_data=None):
config = []
for nic in network_data:
- cfg = {k: v for k, v in nic.items()
- if k in valid_keys['physical']}
+ cfg = dict((k, v) for k, v in nic.items()
+ if k in valid_keys['physical'])
cfg.update({
'type': 'physical',
'name': nic['interface']})
@@ -728,8 +728,8 @@ def convert_smartos_network_data(network_data=None):
subnets = []
for ip, gw in zip(nic['ips'], nic['gateways']):
- subnet = {k: v for k, v in nic.items()
- if k in valid_keys['subnet']}
+ subnet = dict((k, v) for k, v in nic.items()
+ if k in valid_keys['subnet'])
subnet.update({
'type': 'static',
'address': ip,