summaryrefslogtreecommitdiff
path: root/cloudinit/__init__.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-25 02:26:22 +0000
committerScott Moser <smoser@ubuntu.com>2011-01-25 02:26:22 +0000
commit10d4048677a90ab66ab4a314f311163b6e6d9cf1 (patch)
tree4e79feafb2db1b1ad3d57d5c55015104428a27f2 /cloudinit/__init__.py
parentf525772c0d95057323531289418445cd7d625bb0 (diff)
downloadvyos-cloud-init-10d4048677a90ab66ab4a314f311163b6e6d9cf1.tar.gz
vyos-cloud-init-10d4048677a90ab66ab4a314f311163b6e6d9cf1.zip
add support for redirecting output of cloud-init, cloud-config and cloud-final
Diffstat (limited to 'cloudinit/__init__.py')
-rw-r--r--cloudinit/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cloudinit/__init__.py b/cloudinit/__init__.py
index 1786cc2f..9c02ff8a 100644
--- a/cloudinit/__init__.py
+++ b/cloudinit/__init__.py
@@ -73,7 +73,7 @@ log.addHandler(NullHandler())
def logging_set_from_cfg_file(cfg_file=system_config):
logging_set_from_cfg(util.get_base_cfg(cfg_file,cfg_builtin,parsed_cfgs))
-def logging_set_from_cfg(cfg, logfile=None):
+def logging_set_from_cfg(cfg):
log_cfgs = []
logcfg=util.get_cfg_option_str(cfg, "log_cfg", False)
if logcfg:
@@ -530,5 +530,8 @@ def get_ipath_cur(name=None):
def get_cpath(name=None):
return("%s%s" % (varlibdir, pathmap[name]))
+def get_base_cfg():
+ return(util.get_base_cfg(system_config,cfg_builtin,parsed_cfgs))
+
class DataSourceNotFoundException(Exception):
pass