From ca7b2e49f6d515a8fae0ee02ff12474fc50e9820 Mon Sep 17 00:00:00 2001 From: Vladimir Khlyunev Date: Wed, 24 Aug 2016 11:49:43 +0300 Subject: [PATCH] Fetch next deployable release basen on OPENSTACK_RELEASE var Right now we have mitaka and mitaka+UCA releases which both uses Ubuntu as operation system. We want to predict "which release will be taken for next operations". 'octane upgrade-env' now requires release id so this patch is required for further changes https://review.openstack.org/#/c/358881/ Change-Id: Icc4c2f534a13e11995129bad62b4fc985633fb34 --- fuelweb_test/models/fuel_web_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fuelweb_test/models/fuel_web_client.py b/fuelweb_test/models/fuel_web_client.py index 738add8af..6542679a1 100644 --- a/fuelweb_test/models/fuel_web_client.py +++ b/fuelweb_test/models/fuel_web_client.py @@ -2366,7 +2366,8 @@ class FuelWebClient29(object): if (release["id"] > release_id and release["operating_system"] == release_details["operating_system"] and - release["is_deployable"]): + release["is_deployable"] and + OPENSTACK_RELEASE in release["name"].lower()): return release["id"] return None