Merge "Python 3 compatibility: fix has_key"

This commit is contained in:
Zuul 2018-11-23 12:28:28 +00:00 committed by Gerrit Code Review
commit cb86cc0a33
1 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ def create_nova_connection(options):
insecure=options["insecure"],
region_name=region,
session=keystone_session, auth=keystone_auth,
http_log_debug=options.has_key("verbose"),
http_log_debug="verbose" in options,
endpoint_type=nova_endpoint_type)
else:
# OSP >= Ocata
@ -152,7 +152,7 @@ def create_nova_connection(options):
nova = client.Client(version,
region_name=region,
session=keystone_session, auth=keystone_auth,
http_log_debug=options.has_key("verbose"),
http_log_debug="verbose" in options,
endpoint_type=nova_endpoint_type)
try: