use url_helper to combine url
This seems cleaner, to avoid duplicate '/' being added.
This commit is contained in:
parent
a169f854cf
commit
26a1aa5741
@ -78,7 +78,8 @@ class DataSourceCloudStack(sources.DataSource):
|
|||||||
|
|
||||||
(max_wait, timeout) = self._get_url_settings()
|
(max_wait, timeout) = self._get_url_settings()
|
||||||
|
|
||||||
urls = [self.metadata_address + "/latest/meta-data/instance-id"]
|
urls = [uhelp.combine_url(self.metadata_address,
|
||||||
|
'latest/meta-data/instance-id')]
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
url = uhelp.wait_for_url(urls=urls, max_wait=max_wait,
|
url = uhelp.wait_for_url(urls=urls, max_wait=max_wait,
|
||||||
timeout=timeout, status_cb=LOG.warn)
|
timeout=timeout, status_cb=LOG.warn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user