Skip to content

Commit fe83c63

Browse files
committed
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 <[email protected]>
1 parent c838e67 commit fe83c63

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

nova/cmd/manage.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -752,15 +752,7 @@ def cell0_default_connection():
752752
# worry about parsing and splitting a URL which could have special
753753
# characters in the password, which makes parsing a nightmare.
754754
url = sqla_url.make_url(connection)
755-
756-
# TODO(gibi): remove hasattr() conditional in favor of "url.set()"
757-
# when SQLAlchemy 1.4 is the minimum version in requirements
758-
if hasattr(url, "set"):
759-
url = url.set(database=url.database + '_cell0')
760-
else:
761-
# TODO(zzzeek): remove when SQLAlchemy 1.4
762-
# is the minimum version in requirements
763-
url.database = url.database + '_cell0'
755+
url = url.set(database=url.database + '_cell0')
764756

765757
return urlparse.unquote(str(url))
766758

0 commit comments

Comments
 (0)