diff options
author | Joshua Harlow <harlowja@gmail.com> | 2014-08-26 23:08:14 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2014-08-26 23:08:14 -0700 |
commit | 9a7587f35f327b9f8cafce8687832e9e77c1afde (patch) | |
tree | ea28920086fa750bfce3ccf593e7293b778c177b /cloudinit/sources/helpers | |
parent | 6a6d3a499c2327b03993bbaea2b9d0df5dc7eb64 (diff) | |
download | vyos-cloud-init-9a7587f35f327b9f8cafce8687832e9e77c1afde.tar.gz vyos-cloud-init-9a7587f35f327b9f8cafce8687832e9e77c1afde.zip |
Log a warning when unable to fetch the openstack versions
Diffstat (limited to 'cloudinit/sources/helpers')
-rw-r--r-- | cloudinit/sources/helpers/openstack.py | 5 |
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() |