summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-08-26 23:08:14 -0700
committerJoshua Harlow <harlowja@gmail.com>2014-08-26 23:08:14 -0700
commit9a7587f35f327b9f8cafce8687832e9e77c1afde (patch)
treeea28920086fa750bfce3ccf593e7293b778c177b /cloudinit
parent6a6d3a499c2327b03993bbaea2b9d0df5dc7eb64 (diff)
downloadvyos-cloud-init-9a7587f35f327b9f8cafce8687832e9e77c1afde.tar.gz
vyos-cloud-init-9a7587f35f327b9f8cafce8687832e9e77c1afde.zip
Log a warning when unable to fetch the openstack versions
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/sources/helpers/openstack.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/sources/helpers/openstack.py b/cloudinit/sources/helpers/openstack.py
index 418ab4d1..56986a94 100644
--- a/cloudinit/sources/helpers/openstack.py
+++ b/cloudinit/sources/helpers/openstack.py
@@ -407,8 +407,9 @@ class MetadataReader(BaseReader):
versions_available = []
try:
versions = self._path_read(version_path)
- except IOError:
- pass
+ except IOError as e:
+ LOG.warn("Unable to read openstack versions from %s due"
+ " to: %s", version_path, e)
else:
for line in versions.splitlines():
line = line.strip()