diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-09-10 14:39:59 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-09-10 14:39:59 -0400 |
commit | 1b975098ea2cc82a168203c720ef936db4864467 (patch) | |
tree | fa0d8c1455ae96c5777b52686e391db2cea386bb /cloudinit/sources/helpers | |
parent | b76f489dc594c352b285b0239b0ce872ccf3511d (diff) | |
download | vyos-cloud-init-1b975098ea2cc82a168203c720ef936db4864467.tar.gz vyos-cloud-init-1b975098ea2cc82a168203c720ef936db4864467.zip |
log as warn if things are obviously wrong
If something is broken as in a built in config, or code
just broken, then logging warning during search for metadata
is ok.
Diffstat (limited to 'cloudinit/sources/helpers')
-rw-r--r-- | cloudinit/sources/helpers/openstack.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cloudinit/sources/helpers/openstack.py b/cloudinit/sources/helpers/openstack.py index 7b27621c..0c6b9b5a 100644 --- a/cloudinit/sources/helpers/openstack.py +++ b/cloudinit/sources/helpers/openstack.py @@ -178,8 +178,10 @@ class BaseReader(object): break if selected_version != version: - LOG.debug("Version '%s' not available, attempting to use" - " version '%s' instead", version, selected_version) + LOG.warn("Version '%s' not available, attempting to use " + "version '%s' instead", version, selected_version) + else: + LOG.debug("Version '%s' was available.", version) return selected_version def _read_content_path(self, item): |