diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-07-13 22:45:19 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-07-13 22:45:19 -0400 |
commit | 7b4eef8f57ffb02c3851c7bfc36d614ebab8f341 (patch) | |
tree | e7216eaf283bdcbe233939ccf1c154b90150fc49 /cloudinit/sources/DataSourceSmartOS.py | |
parent | 150d064b5693c7a287790900923b9413fe6d73dd (diff) | |
parent | 22a93665b90fa7fba80946d690330eda890f50d4 (diff) | |
download | vyos-cloud-init-7b4eef8f57ffb02c3851c7bfc36d614ebab8f341.tar.gz vyos-cloud-init-7b4eef8f57ffb02c3851c7bfc36d614ebab8f341.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, |