diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 860d790..b277d34 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.11.0 +current_version = 0.11.1 commit = True tag = False diff --git a/conda/meta.yaml b/conda/meta.yaml index 6c43acf..d28c8a7 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,5 +1,5 @@ {% set name = "floyd-cli" %} -{% set version = "0.11.0" %} +{% set version = "0.11.1" %} {% set file_ext = "tar.gz" %} package: diff --git a/floyd/client/base.py b/floyd/client/base.py index d4cbb0c..41dc14b 100644 --- a/floyd/client/base.py +++ b/floyd/client/base.py @@ -22,7 +22,10 @@ class FloydHttpClient(object): """ def __init__(self, skip_auth=False): self.base_url = "{}/api/v1".format(floyd.floyd_host) - self.auth_header = AuthConfigManager.get_auth_header() + if skip_auth: + self.auth_header = None + else: + self.auth_header = AuthConfigManager.get_auth_header() def request(self, method, diff --git a/floyd/manager/auth_config.py b/floyd/manager/auth_config.py index 0c84b64..8085f61 100644 --- a/floyd/manager/auth_config.py +++ b/floyd/manager/auth_config.py @@ -42,7 +42,6 @@ def get_auth_header(cls): def purge_access_token(cls): if not os.path.isfile(cls.CONFIG_FILE_PATH): return True - os.remove(cls.CONFIG_FILE_PATH) diff --git a/setup.py b/setup.py index 86ad55e..ab6a723 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import find_packages, setup project = "floyd-cli" -version = "0.11.0" +version = "0.11.1" with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: long_description = readme.read()