diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-02-24 14:41:42 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-02-24 14:41:42 -0800 |
commit | 2185ec2920e3c08690d87c19f0980cca18267af6 (patch) | |
tree | e1572a92a0e6cb620d5276712d75cdf454219a37 /cloudinit/sources/DataSourceOpenStack.py | |
parent | 82c659d5473d4f06705c233bc43f5d5a8ba262f7 (diff) | |
download | vyos-cloud-init-2185ec2920e3c08690d87c19f0980cca18267af6.tar.gz vyos-cloud-init-2185ec2920e3c08690d87c19f0980cca18267af6.zip |
Reduce OSds LOG levels when detecting and use HAVANA instead of latest
Diffstat (limited to 'cloudinit/sources/DataSourceOpenStack.py')
-rw-r--r-- | cloudinit/sources/DataSourceOpenStack.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cloudinit/sources/DataSourceOpenStack.py b/cloudinit/sources/DataSourceOpenStack.py index 72ec8075..0970d07b 100644 --- a/cloudinit/sources/DataSourceOpenStack.py +++ b/cloudinit/sources/DataSourceOpenStack.py @@ -88,11 +88,11 @@ class DataSourceOpenStack(openstack.SourceMixin, sources.DataSource): md_urls = [] url2base = {} for url in urls: - md_url = url_helper.combine_url(url, 'openstack', - openstack.OS_LATEST, - 'meta_data.json') - md_urls.append(md_url) - url2base[md_url] = url + for version in openstack.OS_VERSIONS + (openstack.OS_LATEST,): + md_url = url_helper.combine_url(url, 'openstack', + version, 'meta_data.json') + md_urls.append(md_url) + url2base[md_url] = url (max_wait, timeout) = self._get_url_settings() start_time = time.time() @@ -120,7 +120,7 @@ class DataSourceOpenStack(openstack.SourceMixin, sources.DataSource): read_metadata_service, args=[self.metadata_address], kwargs={'ssl_details': self.ssl_details, - 'version': openstack.OS_LATEST}) + 'version': openstack.OS_HAVANA}) except openstack.NonReadable: return False except (openstack.BrokenMetadata, IOError): |