diff options
author | Mark Washenberger <mark.washenberger@rackspace.com> | 2012-09-13 05:35:26 +0000 |
---|---|---|
committer | Mark Washenberger <mark.washenberger@rackspace.com> | 2012-09-13 05:36:38 +0000 |
commit | 9b3c4f847d482411e076eff4e798ebf4cbeb5239 (patch) | |
tree | 9520453b53a4cd2b9b05ea9aabd4e37b04cbb081 /swiftclient | |
parent | 68d1550f15a6ec6f51973af2e27f3a6943b6305f (diff) | |
download | python-swiftclient-9b3c4f847d482411e076eff4e798ebf4cbeb5239.tar.gz |
Do not use dictionaries as default parameters
Change-Id: I1e2b7065a7cfad2511fbcee669f666257ef291d0
Diffstat (limited to 'swiftclient')
-rw-r--r-- | swiftclient/client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py index 65a721e..cac480b 100644 --- a/swiftclient/client.py +++ b/swiftclient/client.py @@ -916,7 +916,7 @@ class Connection(object): def __init__(self, authurl, user, key, retries=5, preauthurl=None, preauthtoken=None, snet=False, starting_backoff=1, - tenant_name=None, os_options={}, auth_version="1"): + tenant_name=None, os_options=None, auth_version="1"): """ :param authurl: authentication URL :param user: user name to authenticate as @@ -944,9 +944,9 @@ class Connection(object): self.snet = snet self.starting_backoff = starting_backoff self.auth_version = auth_version + self.os_options = os_options or {} if tenant_name: - os_options['tenant_name'] = tenant_name - self.os_options = os_options + self.os_options['tenant_name'] = tenant_name def get_auth(self): return get_auth(self.authurl, |