From 1a91c966261ce8e3e0823d7d3f6ee0e0518258aa Mon Sep 17 00:00:00 2001 From: Vinod Gupta Date: Sun, 19 Apr 2020 19:24:21 -0400 Subject: [PATCH] fixed syntax error and Version number --- VERSION | 2 +- ecsclient/baseclient.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 512a1fa..9ee1f78 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.9 +1.1.11 diff --git a/ecsclient/baseclient.py b/ecsclient/baseclient.py index 4058751..7310b30 100644 --- a/ecsclient/baseclient.py +++ b/ecsclient/baseclient.py @@ -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 @@ -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