diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-07-13 22:36:23 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-07-13 22:36:23 -0400 |
commit | 22a93665b90fa7fba80946d690330eda890f50d4 (patch) | |
tree | 3df7b9a8f4c12529e2d87d6214316db03e62dced /cloudinit/sources/DataSourceSmartOS.py | |
parent | 7d58c949c2f5d7821ec664ed25167dfea92964f7 (diff) | |
parent | 333eea5105956c978043579a49d935af6d3ceff2 (diff) | |
download | vyos-cloud-init-22a93665b90fa7fba80946d690330eda890f50d4.tar.gz vyos-cloud-init-22a93665b90fa7fba80946d690330eda890f50d4.zip |
merge from trunk
Diffstat (limited to 'cloudinit/sources/DataSourceSmartOS.py')
-rw-r--r-- | cloudinit/sources/DataSourceSmartOS.py | 8 |
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, |