From da8a64b638a6da414f19ac918e72376d9c099d70 Mon Sep 17 00:00:00 2001
From: Albin Vass <albin.vass@volvocars.com>
Date: Tue, 6 Apr 2021 10:50:58 +0200
Subject: [PATCH] Use openstacksdk 0.45.0 for python2.7

Change-Id: Ib5b2bbd148fcee73f0069288cd368759d7c10cfb
---
 test-requirements.txt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/test-requirements.txt b/test-requirements.txt
index 35578a462..9263eaa08 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -12,14 +12,19 @@
 ansible>=2.7,<2.8 # https://review.opendev.org/#/c/727157/
 stestr>=1.0.0,<3.0.0;python_version<'3.5' # Apache-2.0
 stestr>=1.0.0;python_version>='3.5' # Apache-2.0
+
 # For upload-logs-swift:
 # TODO: openstacksdk 0.48.0 dropped python 3.5 support. Remove this constraint
 # when we dropped 3.5 in zuul-jobs as well.
-openstacksdk>=0.17.1,<0.48.0;python_version<'3.6'
+openstacksdk>=0.17.1,<0.48.0;python_version<'3.6' and python_version>='3'
+# TODO: openstacksdk 0.46.0 dropped python 2.7 support. Remove this constraint
+# when we dropped 2.7 in zuul-jobs as well.
+openstacksdk>=0.17.1,<0.46.0;python_version<'3'
 openstacksdk>=0.17.1;python_version>='3.6'
 # TODO: keystoneauth1 4.1.0 dropped python 2.7 and 3.5 support. Remove this
 # constraint when we drop them in zuul-jobs as well.
 keystoneauth1>=3.18.0,<4.1.0;python_version<'3.6'
+
 # TODO: cachetools 4.0.0 dropped python 2.7 support. Remove this constraint
 # when we drop it in zuul-jobs as well.
 cachetools>=2.0.0,<4.0;python_version<'3.5'