diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-08-06 23:51:17 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-08-06 23:51:17 -0500 |
commit | fc5fc6e476059327d4063f165170cdde01db4100 (patch) | |
tree | f03b2feda3a4eecd339a821d6219ac3ef9c07428 /bin | |
parent | ebd393e56ba21f8a84571dff499e6d6fb6852042 (diff) | |
download | vyos-cloud-init-fc5fc6e476059327d4063f165170cdde01db4100.tar.gz vyos-cloud-init-fc5fc6e476059327d4063f165170cdde01db4100.zip |
add the webhook handler
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cloud-init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/cloud-init b/bin/cloud-init index ad2e624a..86780408 100755 --- a/bin/cloud-init +++ b/bin/cloud-init @@ -138,8 +138,8 @@ def run_module_section(mods, action_name, section): def apply_reporting_cfg(cfg): - reporting.reset_configuration() - reporting.update_configuration(cfg.get('reporting'), {}) + if cfg.get('reporting'): + reporting.update_configuration(cfg.get('reporting')) def main_init(name, args): @@ -648,7 +648,7 @@ def main(): "running single module %s" % args.name) report_on = args.report - reporting.add_configuration({'print': {'type': 'print'}}) + reporting.update_configuration({'print': {'type': 'print'}}) args.reporter = reporting.ReportEventStack( rname, rdesc, reporting_enabled=report_on) with args.reporter: |