summaryrefslogtreecommitdiff
path: root/cloudinit/distros/__init__.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2018-09-21 08:39:17 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-09-21 08:39:17 +0000
commit1c63a4f5d5cc045ef66291afe1694bd58cc059af (patch)
tree2aa4c4e96d3c858e5733d6e350c957938565d4a2 /cloudinit/distros/__init__.py
parentf0ff194054da90b7b49620b5658342e52156d68e (diff)
downloadvyos-cloud-init-1c63a4f5d5cc045ef66291afe1694bd58cc059af.tar.gz
vyos-cloud-init-1c63a4f5d5cc045ef66291afe1694bd58cc059af.zip
pylint: ignore warning assignment-from-no-return for _write_network
Distro subclasses arch, freebsd and debian still have a path with an implemented _write_network method which has a return value. Can drop this pylint ignore when _write_network is dropped from arch, freebsd and debian.
Diffstat (limited to 'cloudinit/distros/__init__.py')
-rw-r--r--cloudinit/distros/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py
index ac150bef..ef618c28 100644
--- a/cloudinit/distros/__init__.py
+++ b/cloudinit/distros/__init__.py
@@ -143,7 +143,11 @@ class Distro(object):
# this applies network where 'settings' is interfaces(5) style
# it is obsolete compared to apply_network_config
# Write it out
+
+ # pylint: disable=assignment-from-no-return
+ # We have implementations in arch, freebsd and gentoo still
dev_names = self._write_network(settings)
+ # pylint: enable=assignment-from-no-return
# Now try to bring them up
if bring_up:
return self._bring_up_interfaces(dev_names)