Skip to content

Commit

Permalink
Merge pull request #196 from singularityhub/fix/bug-api-base
Browse files Browse the repository at this point in the history
fixing bug that the registry api base needs to end with api
  • Loading branch information
vsoch committed May 10, 2019
2 parents abc9614 + a1d7663 commit a94a4f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
The versions coincide with releases on pip. Only major versions will be released as tags on Github.

## [0.0.x](https://github.com/singularityhub/sregistry-cli/tree/master) (0.0.x)
- bug with sregistry push api endpoint, needs to end with api (0.01.41)
- docker auth is undefined, and storage attribute needs to be checked for naming (0.01.40)
- fixing bug with tag specification for registry pull (0.01.39)
- registry client should honor base, if provided with uri (0.01.38)
Expand Down
3 changes: 2 additions & 1 deletion sregistry/main/registry/__init__.py
Expand Up @@ -31,8 +31,9 @@ def __init__(self, secrets=None, base=None, **kwargs):

def _update_base(self):
if self.base is not None:
self.base = self.base.strip('/')
if not self.base.endswith('api'):
self.base = self.base.strip('/')
self.base = "%s/api" % self.base


def _read_response(self,response, field="detail"):
Expand Down
2 changes: 1 addition & 1 deletion sregistry/version.py
Expand Up @@ -8,7 +8,7 @@
'''

__version__ = "0.1.40"
__version__ = "0.1.41"
AUTHOR = 'Vanessa Sochat'
AUTHOR_EMAIL = 'vsochat@stanford.edu'
NAME = 'sregistry'
Expand Down

0 comments on commit a94a4f3

Please sign in to comment.