diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-08-06 18:19:46 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-08-06 18:19:46 -0500 |
commit | 6fdb23b6cbc8de14ebcffc17e9e49342b7bf193d (patch) | |
tree | 09968b96312b43aedbc4a5c44f089eaeaa0e872e /cloudinit/reporting/handlers.py | |
parent | 963647d5197523fabe319df5f0502ec6dce64bd6 (diff) | |
download | vyos-cloud-init-6fdb23b6cbc8de14ebcffc17e9e49342b7bf193d.tar.gz vyos-cloud-init-6fdb23b6cbc8de14ebcffc17e9e49342b7bf193d.zip |
sync with cloudinit 2.0 for registry and reporting
Diffstat (limited to 'cloudinit/reporting/handlers.py')
-rw-r--r-- | cloudinit/reporting/handlers.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/cloudinit/reporting/handlers.py b/cloudinit/reporting/handlers.py index be323f53..86cbe3c3 100644 --- a/cloudinit/reporting/handlers.py +++ b/cloudinit/reporting/handlers.py @@ -1,14 +1,27 @@ +# vi: ts=4 expandtab + import abc import logging +import oauthlib.oauth1 as oauth1 + +import six from cloudinit.registry import DictRegistry +from cloudinit import url_helper +from cloudinit import util +@six.add_metaclass(abc.ABCMeta) class ReportingHandler(object): + """Base class for report handlers. + + Implement :meth:`~publish_event` for controlling what + the handler does with an event. + """ @abc.abstractmethod def publish_event(self, event): - raise NotImplementedError + """Publish an event to the ``INFO`` log level.""" class LogHandler(ReportingHandler): |