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 ae21932 commit 82a194aCopy full SHA for 82a194a
tools/kolla-images.py
@@ -209,11 +209,11 @@ def get_openstack_release() -> str:
209
if "=" not in line:
210
continue
211
key, value = line.split("=")
212
- if key.strip().strip() == "defaultbranch":
213
- value = value.strip().rstrip()
214
- prefix = "stable/"
215
- assert value.startswith(prefix)
216
- return value[len(prefix):]
+ if key.strip() == "defaultbranch":
+ value = value.strip()
+ for prefix in ("stable/", "unmaintained/"):
+ if value.startswith(prefix):
+ return value[len(prefix):]
217
raise Exception("Failed to determine OpenStack release")
218
219
0 commit comments