diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-03-17 14:03:29 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-03-17 14:07:27 +0000 |
commit | 5a4aa6f7bc1cc5f6c056b768409155f8aebbbefb (patch) | |
tree | 7c9c713915d3a2b2fba0dc1739daa436b1e3e2e3 /morphlib | |
parent | cd7fa4119a3850541566b7d20d69515256e0b310 (diff) | |
download | morph-5a4aa6f7bc1cc5f6c056b768409155f8aebbbefb.tar.gz |
Fix line lengths in morphlib/exts/simple-network.configure
Some lines were more than 79 characters long. This was causing
./check --full to fail on master of morph. This commit fixes the
lines in question.
Change-Id: I80969d2d89d3922e021b716c250796188d7a7f4c
Diffstat (limited to 'morphlib')
-rwxr-xr-x | morphlib/exts/simple-network.configure | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/morphlib/exts/simple-network.configure b/morphlib/exts/simple-network.configure index a347ebf9..61113325 100755 --- a/morphlib/exts/simple-network.configure +++ b/morphlib/exts/simple-network.configure @@ -52,7 +52,8 @@ class SimpleNetworkConfigurationExtension(cliapp.Application): if network_config is None: self.generate_default_network_config(args) else: - self.status(msg="Processing NETWORK_CONFIG=%(nc)s", nc=network_config) + self.status(msg="Processing NETWORK_CONFIG=%(nc)s", + nc=network_config) stanzas = self.parse_network_stanzas(network_config) @@ -87,13 +88,16 @@ class SimpleNetworkConfigurationExtension(cliapp.Application): pass def generate_default_network_config(self, args): - """Generate default network configuration: DHCP in all the interfaces""" + """Generate default network config: DHCP in all the interfaces""" - default_network_config_interfaces = "lo:loopback;eth0:dhcp,hostname=$(hostname)" + default_network_config_interfaces = "lo:loopback;" \ + "eth0:dhcp,hostname=$(hostname)" default_network_config_networkd = "e*:dhcp" - stanzas_interfaces = self.parse_network_stanzas(default_network_config_interfaces) - stanzas_networkd = self.parse_network_stanzas(default_network_config_networkd) + stanzas_interfaces = self.parse_network_stanzas( + default_network_config_interfaces) + stanzas_networkd = self.parse_network_stanzas( + default_network_config_networkd) self.generate_interfaces_file(args, stanzas_interfaces) self.generate_networkd_files(args, stanzas_networkd) |