summaryrefslogtreecommitdiff
path: root/cloudinit/sources/__init__.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-07-31 14:38:09 +0000
committerScott Moser <smoser@ubuntu.com>2015-07-31 14:38:09 +0000
commitb22302d8e2b539f61faede7efb3a163966bf170a (patch)
treeb847791cea471ebf31a870926c1c8a21888757c3 /cloudinit/sources/__init__.py
parent6f174b41496f133af92fb373f3b718eabdebfa05 (diff)
downloadvyos-cloud-init-b22302d8e2b539f61faede7efb3a163966bf170a.tar.gz
vyos-cloud-init-b22302d8e2b539f61faede7efb3a163966bf170a.zip
fix issues found when testing
Diffstat (limited to 'cloudinit/sources/__init__.py')
-rw-r--r--cloudinit/sources/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py
index c4848d5d..f585c3e4 100644
--- a/cloudinit/sources/__init__.py
+++ b/cloudinit/sources/__init__.py
@@ -252,9 +252,10 @@ def find_source(sys_cfg, distro, paths, ds_deps, cfg_list, pkg_list, reporter):
ds_names = [type_utils.obj_name(f) for f in ds_list]
LOG.debug("Searching for data source in: %s", ds_names)
- for cls in ds_list:
+ for i, cls in enumerate(ds_list):
+ name=ds_names[i].replace("DataSource", "")
myreporter = reporting.ReportStack(
- "check-%s" % cls, "searching for %s" % cls,
+ "check-%s" % name, "searching for %s" % name,
parent=reporter, exc_result=reporting.status.WARN)
try: