Skip to content

Commit e40c7c0

Browse files
committed
DataSourceMaaS: some fixes found in testing
1 parent db695dc commit e40c7c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cloudinit/DataSourceMaaS.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def get_data(self):
7676

7777
(userdata, metadata) = read_maas_seed_url(self.baseurl,
7878
self.md_headers)
79+
self.userdata_raw = userdata
80+
self.metadata = metadata
7981
return True
8082
except Exception:
8183
util.logexc(log)
@@ -117,7 +119,7 @@ def wait_for_metadata_service(self, url):
117119
log.warn("Failed to get timeout, using %s" % timeout)
118120

119121
starttime = time.time()
120-
check_url = "%s/instance-id" % url
122+
check_url = "%s/%s/meta-data/instance-id" % (url, MD_VERSION)
121123
url = util.wait_for_url(urls=[check_url], max_wait=max_wait,
122124
timeout=timeout, status_cb=log.warn,
123125
headers_cb=self.md_headers)

0 commit comments

Comments
 (0)