diff --git a/common/tasks/network-configuration.json b/common/tasks/network-configuration.json index 854ed22..0a12c4c 100644 --- a/common/tasks/network-configuration.json +++ b/common/tasks/network-configuration.json @@ -1,13 +1,13 @@ { "squeeze": [ - "auto lo\n", - "iface lo inet loopback\n", - "auto eth0\n", - "iface eth0 inet dhcp\n" ], + "auto lo", + "iface lo inet loopback", + "auto eth0", + "iface eth0 inet dhcp" ], "wheezy": [ - "auto eth0\n", - "iface eth0 inet dhcp\n" ], + "auto eth0", + "iface eth0 inet dhcp" ], "unstable": [ - "auto eth0\n", - "iface eth0 inet dhcp\n" ] + "auto eth0", + "iface eth0 inet dhcp" ] } diff --git a/common/tasks/network.py b/common/tasks/network.py index 6be1de7..7392658 100644 --- a/common/tasks/network.py +++ b/common/tasks/network.py @@ -35,4 +35,4 @@ class ConfigureNetworkIF(Task): import json if_config = json.loads(stream.read()) with open(interfaces_path, 'a') as interfaces: - interfaces.write(''.join(if_config.get(info.manifest.system['release']))) + interfaces.write('\n'.join(if_config.get(info.manifest.system['release'])))