summaryrefslogtreecommitdiff
path: root/cloudinit/cloud.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-07-31 19:27:52 +0000
committerScott Moser <smoser@ubuntu.com>2015-07-31 19:27:52 +0000
commit07b452e166b5d2ff34d5558b1dbba42ab0f1f23c (patch)
tree706d3850da203485a21beb98a1e5abcb76a32d21 /cloudinit/cloud.py
parent35ddad2cee3209c90de74de96a54aaf0b4f14ea9 (diff)
downloadvyos-cloud-init-07b452e166b5d2ff34d5558b1dbba42ab0f1f23c.tar.gz
vyos-cloud-init-07b452e166b5d2ff34d5558b1dbba42ab0f1f23c.zip
plumb the rest the reporting through
Diffstat (limited to 'cloudinit/cloud.py')
-rw-r--r--cloudinit/cloud.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/cloudinit/cloud.py b/cloudinit/cloud.py
index 95e0cfb2..71eb80eb 100644
--- a/cloudinit/cloud.py
+++ b/cloudinit/cloud.py
@@ -40,12 +40,18 @@ LOG = logging.getLogger(__name__)
class Cloud(object):
- def __init__(self, datasource, paths, cfg, distro, runners):
+ def __init__(self, datasource, paths, cfg, distro, runners, reporter=None):
self.datasource = datasource
self.paths = paths
self.distro = distro
self._cfg = cfg
self._runners = runners
+ if reporter is None:
+ reporter = reporting.ReportStack(
+ name="unnamed-cloud-reporter",
+ description="unnamed-cloud-reporter",
+ reporting_enabled=False)
+ self.reporter = reporter
# If a 'user' manipulates logging or logging services
# it is typically useful to cause the logging to be