Switch to py3 syntax for dictionary contains test

Change-Id: Ia57576b7dd7ba7f1dd34cd4f17942fbf753ea6f8
This commit is contained in:
Sam Morrison 2020-07-23 09:44:05 +10:00
parent 6def1495a5
commit 8fe073043a
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ DISPLAY_MURANO_REPO_URL = 'http://apps.openstack.org/#tab=murano-apps'
# DATABASES, if not, set it by murano.
try:
from openstack_dashboard.settings import DATABASES
DATABASES_CONFIG = DATABASES.has_key('default')
DATABASES_CONFIG = 'default' in DATABASES
except ImportError:
DATABASES_CONFIG = False