From 7d58c949c2f5d7821ec664ed25167dfea92964f7 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 13 Jul 2016 22:10:22 -0400 Subject: pass the return back up, shorten lines some. --- cloudinit/distros/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cloudinit') diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py index 006a7062..40af8802 100644 --- a/cloudinit/distros/__init__.py +++ b/cloudinit/distros/__init__.py @@ -141,17 +141,18 @@ class Distro(object): return False def _apply_network_from_network_config(self, netconfig, bring_up=True): + distro = self.__class__ LOG.warn("apply_network_config is not currently implemented " - "for distribution '%s'. Attempting to use " - "apply_network", self.__class__) + "for distribution '%s'. Attempting to use apply_network", + distro) header = '\n'.join([ - "# Converted from network_config for distro %s" % self.__class__, + "# Converted from network_config for distro %s" % distro, "# Implmentation of _write_network_config is needed." ]) ns = network_state.parse_net_config_data(netconfig) contents = eni.network_state_to_eni( ns, header=header, render_hwaddress=True) - self.apply_network(contents, bring_up=bring_up) + return self.apply_network(contents, bring_up=bring_up) def apply_network_config(self, netconfig, bring_up=False): # apply network config netconfig -- cgit v1.2.3