We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20c2e05 commit 3498519Copy full SHA for 3498519
extensions/MaaS/maas.py
@@ -47,7 +47,11 @@ def parse_json(self):
47
48
endpoint = host.get("endpoint") or extension.get("endpoint")
49
apikey = host.get("apikey") or extension.get("apikey")
50
- distro_series = host.get("distro_series") or extension.get("distro_series") or "ubuntu"
+ distro_series = (
51
+ json_data.get("cloudstack.vm.details", {})
52
+ .get("details", {})
53
+ .get("distro_series", "ubuntu")
54
+ )
55
56
if not endpoint or not apikey:
57
fail("Missing MAAS endpoint or apikey")
0 commit comments