Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
python-napalm-asa
pylama.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pylama.patch of Package python-napalm-asa
--- napalm_asa/asa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/napalm_asa/asa.py +++ b/napalm_asa/asa.py @@ -62,7 +62,7 @@ class RespFetcherHttps: try: token_request = self.session.post(full_url, auth=(self.username, self.password), data="", timeout=self.timeout, verify=False) - if token_request.status_code is 204 and 'X-Auth-Token' in token_request.headers.keys(): + if token_request.status_code == 204 and 'X-Auth-Token' in token_request.headers.keys(): self.token = token_request.headers['X-Auth-Token'] self.session.headers.update({'X-Auth-Token': token_request.headers['X-Auth-Token']}) return (True, None) @@ -78,7 +78,7 @@ class RespFetcherHttps: token_delete_request = self.session.delete(full_url, auth=(self.username, self.password), timeout=self.timeout, verify=False) - if token_delete_request.status_code is 204: + if token_delete_request.status_code == 204: self.session.headers.pop('X-Auth-Token', None) return (True, None) else:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor