diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-08-10 11:17:28 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-08-10 11:17:28 -0400 |
commit | a9c1e3f747ae69401ebfca9ae64eec1c6d20ebe7 (patch) | |
tree | c2cc359d5adbeb1f299d27722dbba3656f357cb8 | |
parent | b39070772aba62d68fea14603b8d657bbb529d5e (diff) | |
download | vyos-cloud-init-a9c1e3f747ae69401ebfca9ae64eec1c6d20ebe7.tar.gz vyos-cloud-init-a9c1e3f747ae69401ebfca9ae64eec1c6d20ebe7.zip |
reporting: remove unused variable, actually print in PrintHandler
-rw-r--r-- | cloudinit/reporting/__init__.py | 1 | ||||
-rw-r--r-- | cloudinit/reporting/handlers.py | 1 |
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): |