summaryrefslogtreecommitdiff
path: root/cloudinit/reporting
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-08-10 11:17:28 -0400
committerScott Moser <smoser@ubuntu.com>2015-08-10 11:17:28 -0400
commita9c1e3f747ae69401ebfca9ae64eec1c6d20ebe7 (patch)
treec2cc359d5adbeb1f299d27722dbba3656f357cb8 /cloudinit/reporting
parentb39070772aba62d68fea14603b8d657bbb529d5e (diff)
downloadvyos-cloud-init-a9c1e3f747ae69401ebfca9ae64eec1c6d20ebe7.tar.gz
vyos-cloud-init-a9c1e3f747ae69401ebfca9ae64eec1c6d20ebe7.zip
reporting: remove unused variable, actually print in PrintHandler
Diffstat (limited to 'cloudinit/reporting')
-rw-r--r--cloudinit/reporting/__init__.py1
-rw-r--r--cloudinit/reporting/handlers.py1
2 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/reporting/__init__.py b/cloudinit/reporting/__init__.py
index e23fab32..502af95c 100644
--- a/cloudinit/reporting/__init__.py
+++ b/cloudinit/reporting/__init__.py
@@ -83,7 +83,6 @@ def update_configuration(config):
instantiated_handler_registry.unregister_item(
handler_name, force=True)
continue
- registered = instantiated_handler_registry.registered_items
handler_config = handler_config.copy()
cls = available_handlers.registered_items[handler_config.pop('type')]
instantiated_handler_registry.unregister_item(handler_name)
diff --git a/cloudinit/reporting/handlers.py b/cloudinit/reporting/handlers.py
index 172679cc..5ed3cb84 100644
--- a/cloudinit/reporting/handlers.py
+++ b/cloudinit/reporting/handlers.py
@@ -23,6 +23,7 @@ class ReportingHandler(object):
@abc.abstractmethod
def publish_event(self, event):
"""Publish an event to the ``INFO`` log level."""
+ print(event.as_string())
class LogHandler(ReportingHandler):