summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-10-23 18:01:06 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-10-23 18:01:06 -0700
commitfe9ff4691afe50a4c9192b96a872fec319e2606b (patch)
tree56fb9930a6e0ec70702495b3339e955097c2f235
parent10b4e49734526949da06426f9b102086aaaf7589 (diff)
downloadvyos-cloud-init-fe9ff4691afe50a4c9192b96a872fec319e2606b.tar.gz
vyos-cloud-init-fe9ff4691afe50a4c9192b96a872fec319e2606b.zip
Show the handle method for the cc_ubuntu_init_switch module
-rw-r--r--cloudinit/config/cc_ubuntu_init_switch.py1
-rw-r--r--doc/rtd/topics/modules.rst1
2 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/config/cc_ubuntu_init_switch.py b/cloudinit/config/cc_ubuntu_init_switch.py
index b23f70c7..12b6d6d5 100644
--- a/cloudinit/config/cc_ubuntu_init_switch.py
+++ b/cloudinit/config/cc_ubuntu_init_switch.py
@@ -88,6 +88,7 @@ fi
def handle(name, cfg, cloud, log, args):
+ """Handler method activated by cloud-init."""
if not isinstance(cloud.distro, ubuntu.Distro):
log.debug("%s: distro is '%s', not ubuntu. returning",
diff --git a/doc/rtd/topics/modules.rst b/doc/rtd/topics/modules.rst
index 8cb786f4..b50acbfa 100644
--- a/doc/rtd/topics/modules.rst
+++ b/doc/rtd/topics/modules.rst
@@ -303,6 +303,7 @@ Ubuntu Init Switch
**Internal name:** ``cc_ubuntu_init_switch``
.. automodule:: cloudinit.config.cc_ubuntu_init_switch
+ :members:
Update Etc Hosts
----------------