Set self.allow to a dict if None is passed

This used to use a mutable default which would result in self.allow
always being a dict. Since allow is a public attribute, even though
keystoneauth1/identity/base.py does allow = allow or {} at the usage
place, we need to make sure it's a dict here too.

Change-Id: I388b8d7859744a1e7bd454641aaf98e4b6caa3b0
This commit is contained in:
Monty Taylor 2017-08-24 13:38:00 -04:00
parent 322557ac92
commit fa08ed629e
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class Adapter(object):
self.auth = auth
self.connect_retries = connect_retries
self.logger = logger
self.allow = allow
self.allow = allow or {}
self.additional_headers = additional_headers or {}
self.allow_version_hack = allow_version_hack
self.min_version = min_version