Skip to content

Commit

Permalink
fix login bug (#187)
Browse files Browse the repository at this point in the history
* fix login bug

* bump version

* simplify
  • Loading branch information
twojustin authored Jun 15, 2018
1 parent 76f63d2 commit 676dee9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.11.0
current_version = 0.11.1
commit = True
tag = False

Expand Down
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "floyd-cli" %}
{% set version = "0.11.0" %}
{% set version = "0.11.1" %}
{% set file_ext = "tar.gz" %}

package:
Expand Down
5 changes: 4 additions & 1 deletion floyd/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion floyd/manager/auth_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 676dee9

Please sign in to comment.