Skip to content

Commit

Permalink
Merge pull request #68 from EMCECS/fix-override-header-issue
Browse files Browse the repository at this point in the history
Fixed syntax error and version number
  • Loading branch information
spiegela authored Apr 20, 2020
2 parents ff78d9a + 1a91c96 commit c7bea8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.9
1.1.11
4 changes: 2 additions & 2 deletions ecsclient/baseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, username=None, password=None, token=None,
if not (token or os.path.isfile(token_path)):
raise ECSClientException("'token_endpoint' not provided and missing 'token'|'token_path'")

self.override_header = override_header
self.override_header = override_header
self.username = username
self.password = password
self.token = token
Expand Down Expand Up @@ -109,7 +109,7 @@ def _fetch_headers(self):
headers = {'Accept': 'application/json',
'Content-Type': 'application/json',
'x-sds-auth-token': token}
if self.override_header != None:
if self.override_header is not None:
headers['X-EMC-Override'] = self.override_header
return headers

Expand Down

0 comments on commit c7bea8f

Please sign in to comment.