diff options
author | Stephen Finucane <sfinucan@redhat.com> | 2022-08-05 12:18:27 +0100 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2022-08-05 12:18:27 +0100 |
commit | fe83c63b865a86005b9768ffd1acc804813778e3 (patch) | |
tree | a789b8a23a80d09730ee78a03746f2e75419e7fd /nova/cmd | |
parent | c838e678a2a25a36e0163f2d51732374c8e04cad (diff) | |
download | nova-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.py | 10 |
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)) |