We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f77c58d + fe83c63 commit f810b41Copy full SHA for f810b41
nova/cmd/manage.py
@@ -752,15 +752,7 @@ def cell0_default_connection():
752
# worry about parsing and splitting a URL which could have special
753
# characters in the password, which makes parsing a nightmare.
754
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'
+ url = url.set(database=url.database + '_cell0')
764
765
return urlparse.unquote(str(url))
766
0 commit comments