diff options
author | ddavydov <ddavydov@twitter.com> | 2014-08-22 09:39:55 -0700 |
---|---|---|
committer | ddavydov <ddavydov@twitter.com> | 2014-08-22 09:39:55 -0700 |
commit | cb7402a816d1c8dc40323baa55853b2688008dbf (patch) | |
tree | 25144e8f43ac47df954bee7fd33aff559abef205 | |
parent | 59207ee8d78616e689589c06d8cfc8e06ee186eb (diff) | |
download | python-jenkinsapi-cb7402a816d1c8dc40323baa55853b2688008dbf.tar.gz python-jenkinsapi-cb7402a816d1c8dc40323baa55853b2688008dbf.tar.bz2 python-jenkinsapi-cb7402a816d1c8dc40323baa55853b2688008dbf.zip |
Fixed kerberos request's interface
-rw-r--r-- | jenkinsapi/utils/krb_requester.py | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/jenkinsapi/utils/krb_requester.py b/jenkinsapi/utils/krb_requester.py index a9c4e7a..4555249 100644 --- a/jenkinsapi/utils/krb_requester.py +++ b/jenkinsapi/utils/krb_requester.py @@ -27,17 +27,11 @@ class KrbRequester(Requester): super(KrbRequester, self).__init__(**args) self.mutual_auth = mutual_auth - def get_request_dict(self, url, params, data, headers): - req_dict = Requester( - self, - url=url, - params=params, - data=data, - headers=headers - ) - if self.mutual_auth: - auth = HTTPKerberosAuth(self.mutual_auth) - else: - auth = HTTPKerberosAuth() - req_dict['auth'] = auth - return req_dict + def get_request_dict(self, params=None, data=None, files=None, headers=None): + req_dict = super(KrbRequester, self).get_request_dict(params=params, data=data, files=files, headers=headers) + if self.mutual_auth: + auth = HTTPKerberosAuth(self.mutual_auth) + else: + auth = HTTPKerberosAuth() + req_dict['auth'] = auth + return req_dict |