Skip to content

Commit

Permalink
Merge pull request #134 from vsoch/fix/lowercase-tag
Browse files Browse the repository at this point in the history
Fix/lowercase tag
  • Loading branch information
vsoch committed Jul 16, 2018
2 parents e555c42 + 6ed643f commit 0026c75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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)
- image URI tag should not be changed to lowercase (0.0.89)
- adding chunked upload to chunk uploads to Singularity Registry (0.0.88)
- fixing shell client bug (0.0.87)
- updating Dockerfile and Singularity recipt with additional dependencies for 2.5 (0.0.86).
Expand Down
8 changes: 4 additions & 4 deletions sregistry/utils/names.py
Expand Up @@ -66,7 +66,7 @@ def parse_image_name(image_name,
image_name = image_name.replace(base,'').strip('/')

result = dict()
image_name = re.sub('[.](img|simg)','',image_name).lower()
image_name = re.sub('[.](img|simg)','',image_name)
image_name = re.split('/', image_name, 1)

# User only provided an image
Expand All @@ -78,13 +78,13 @@ def parse_image_name(image_name,

# Collection and image provided
elif len(image_name) >= 2:
collection = image_name[0]
collection = image_name[0].lower()
image_name = image_name[1]

# Is there a version?
image_name = image_name.split('@')
if len(image_name) > 1:
version = image_name[1]
version = image_name[1].lower()
image_name = image_name[0]

# Is there a tag?
Expand All @@ -93,7 +93,7 @@ def parse_image_name(image_name,
# No tag in provided string
if len(image_name) > 1:
tag = image_name[1]
image_name = image_name[0]
image_name = image_name[0].lower()

# If still no tag, use default or blank
if tag is None and defaults is True:
Expand Down
2 changes: 1 addition & 1 deletion sregistry/version.py
Expand Up @@ -19,7 +19,7 @@
'''

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

0 comments on commit 0026c75

Please sign in to comment.