summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 12:40:58 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 12:40:58 -0700
commit76f722a9412a88dc8bfc38004f3676a3f2b37835 (patch)
treecf9f0116a4f72d36678994f1f8973a43ce42c401 /cloudinit/distros
parent45c510457910b7d0225d3bc20f372d8710cc1006 (diff)
downloadvyos-cloud-init-76f722a9412a88dc8bfc38004f3676a3f2b37835.tar.gz
vyos-cloud-init-76f722a9412a88dc8bfc38004f3676a3f2b37835.zip
If bringing up, return whatever the bring up result is, otherwise false.
Diffstat (limited to 'cloudinit/distros')
-rw-r--r--cloudinit/distros/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py
index 0ee7f06b..79d441ac 100644
--- a/cloudinit/distros/__init__.py
+++ b/cloudinit/distros/__init__.py
@@ -80,7 +80,8 @@ class Distro(object):
self._write_network(settings)
# Now try to bring them up
if bring_up:
- self._interface_action('up')
+ return self._interface_action('up')
+ return False
@abc.abstractmethod
def set_timezone(self, tz):