diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-09-03 14:46:20 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-09-03 14:46:20 -0400 |
commit | 9eddc072644bf212d93b2247e1d121e3208546db (patch) | |
tree | 33434690ef0f6f85227ad8b1107d0059a74da198 /cloudinit/sources | |
parent | 141a8329d7650b1e9c80364f289b7f399477e5fc (diff) | |
parent | 141caf7f3b224c0265c7bb0014b96ca08aa67193 (diff) | |
download | vyos-cloud-init-9eddc072644bf212d93b2247e1d121e3208546db.tar.gz vyos-cloud-init-9eddc072644bf212d93b2247e1d121e3208546db.zip |
improved logging of errors around module loading/searching
Diffstat (limited to 'cloudinit/sources')
-rw-r--r-- | cloudinit/sources/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py index a2a8f492..7c7ef9ab 100644 --- a/cloudinit/sources/__init__.py +++ b/cloudinit/sources/__init__.py @@ -272,9 +272,9 @@ def list_sources(cfg_list, depends, pkg_list): for ds_name in cfg_list: if not ds_name.startswith(DS_PREFIX): ds_name = '%s%s' % (DS_PREFIX, ds_name) - m_locs = importer.find_module(ds_name, - pkg_list, - ['get_datasource_list']) + m_locs, _looked_locs = importer.find_module(ds_name, + pkg_list, + ['get_datasource_list']) for m_loc in m_locs: mod = importer.import_module(m_loc) lister = getattr(mod, "get_datasource_list") |