summaryrefslogtreecommitdiff
path: root/cloudinit/stages.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-08-02 17:51:40 -0400
committerScott Moser <smoser@ubuntu.com>2015-08-02 17:51:40 -0400
commit89c564a6fd5ac89869f83541370557e3fa58495c (patch)
tree522d4bafe13317cbec2767d91f553381b67fd573 /cloudinit/stages.py
parent89c5936c7c1fb6d172cd0eee9c5f9aa2cd5e2053 (diff)
downloadvyos-cloud-init-89c564a6fd5ac89869f83541370557e3fa58495c.tar.gz
vyos-cloud-init-89c564a6fd5ac89869f83541370557e3fa58495c.zip
fix tests from sync
change ReportStack to ReportEventStack change default ReportEventStack to be status.SUCCESS instead of None
Diffstat (limited to 'cloudinit/stages.py')
-rw-r--r--cloudinit/stages.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py
index 8c79ae4e..42989bb4 100644
--- a/cloudinit/stages.py
+++ b/cloudinit/stages.py
@@ -67,7 +67,7 @@ class Init(object):
self.datasource = NULL_DATA_SOURCE
if reporter is None:
- reporter = reporting.ReportStack(
+ reporter = reporting.ReportEventStack(
name="init-reporter", description="init-desc",
reporting_enabled=False)
self.reporter = reporter
@@ -242,7 +242,7 @@ class Init(object):
if self.datasource is not NULL_DATA_SOURCE:
return self.datasource
- with reporting.ReportStack(
+ with reporting.ReportEventStack(
name="check-cache", description="attempting to read from cache",
parent=self.reporter) as myrep:
ds = self._restore_from_cache()
@@ -508,11 +508,11 @@ class Init(object):
def consume_data(self, frequency=PER_INSTANCE):
# Consume the userdata first, because we need want to let the part
# handlers run first (for merging stuff)
- with reporting.ReportStack(
+ with reporting.ReportEventStack(
"consume-user-data", "reading and applying user-data",
parent=self.reporter):
self._consume_userdata(frequency)
- with reporting.ReportStack(
+ with reporting.ReportEventStack(
"consume-vendor-data", "reading and applying vendor-data",
parent=self.reporter):
self._consume_userdata(frequency)
@@ -705,7 +705,7 @@ class Modules(object):
run_name = "config-%s" % (name)
desc="running %s with frequency %s" % (run_name, freq)
- myrep = reporting.ReportStack(
+ myrep = reporting.ReportEventStack(
name=run_name, description=desc, parent=self.reporter)
with myrep: