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:
parent
322557ac92
commit
fa08ed629e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue