summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-09-04 10:33:37 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-09-04 10:33:37 -0700
commit6f8bd54650e78bd383b29a59bee95a887ff13c81 (patch)
tree23f73ffa23f5db86f3414c4f5cb9f7205af09a50 /cloudinit/sources
parent9eddc072644bf212d93b2247e1d121e3208546db (diff)
downloadvyos-cloud-init-6f8bd54650e78bd383b29a59bee95a887ff13c81.tar.gz
vyos-cloud-init-6f8bd54650e78bd383b29a59bee95a887ff13c81.zip
Reduce logging levels and fix broken call to _fetch_available_versions
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/helpers/openstack.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/cloudinit/sources/helpers/openstack.py b/cloudinit/sources/helpers/openstack.py
index 3c6bb6aa..61c61570 100644
--- a/cloudinit/sources/helpers/openstack.py
+++ b/cloudinit/sources/helpers/openstack.py
@@ -163,10 +163,10 @@ class BaseReader(object):
def _find_working_version(self, version):
try:
- versions_available = self._fetch_available_versions(self)
+ versions_available = self._fetch_available_versions()
except Exception as e:
- LOG.warn("Unable to read openstack versions from %s due to: %s",
- self.base_path, e)
+ LOG.debug("Unable to read openstack versions from %s due to: %s",
+ self.base_path, e)
versions_available = []
search_versions = [version] + list(OS_VERSIONS)
@@ -178,8 +178,8 @@ class BaseReader(object):
break
if selected_version != version:
- LOG.warn("Version '%s' not available, attempting to use"
- " version '%s' instead", version, selected_version)
+ LOG.debug("Version '%s' not available, attempting to use"
+ " version '%s' instead", version, selected_version)
return selected_version
def _read_content_path(self, item):
@@ -239,7 +239,8 @@ class BaseReader(object):
LOG.debug("Failed reading optional path %s due"
" to: %s", path, e)
else:
- LOG.exception("Failed reading mandatory path %s", path)
+ LOG.debug("Failed reading mandatory path %s due"
+ " to: %s", path, e)
else:
found = True
if required and not found: