summaryrefslogtreecommitdiff
path: root/nova/cmd
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2022-08-05 12:18:27 +0100
committerStephen Finucane <sfinucan@redhat.com>2022-08-05 12:18:27 +0100
commitfe83c63b865a86005b9768ffd1acc804813778e3 (patch)
treea789b8a23a80d09730ee78a03746f2e75419e7fd /nova/cmd
parentc838e678a2a25a36e0163f2d51732374c8e04cad (diff)
downloadnova-fe83c63b865a86005b9768ffd1acc804813778e3.tar.gz
Remove workaround for SQLAlchemy < 1.4
This is no longer needed as our minimum is 1.4.13. Change-Id: I946a790f3461f1cf76a49c18596cc0a6f8058f6c Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'nova/cmd')
-rw-r--r--nova/cmd/manage.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/nova/cmd/manage.py b/nova/cmd/manage.py
index 5ee30ccff5..32b0dd57f8 100644
--- a/nova/cmd/manage.py
+++ b/nova/cmd/manage.py
@@ -752,15 +752,7 @@ class CellV2Commands(object):
# worry about parsing and splitting a URL which could have special
# characters in the password, which makes parsing a nightmare.
url = sqla_url.make_url(connection)
-
- # TODO(gibi): remove hasattr() conditional in favor of "url.set()"
- # when SQLAlchemy 1.4 is the minimum version in requirements
- if hasattr(url, "set"):
- url = url.set(database=url.database + '_cell0')
- else:
- # TODO(zzzeek): remove when SQLAlchemy 1.4
- # is the minimum version in requirements
- url.database = url.database + '_cell0'
+ url = url.set(database=url.database + '_cell0')
return urlparse.unquote(str(url))