Skip to content

Commit

Permalink
Fix RegistryURI handling for trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
twaugh committed Apr 5, 2016
1 parent b967c71 commit 098a686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osbs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class RegistryURI(object):
# - Group 2: hostname and port
# Group 3: path, including:
# - Group 4: optional API version, 'v' followed by a number
versionre = re.compile(r'((https?://)?([^/]*))(/(v\d+))?$')
versionre = re.compile(r'((https?://)?([^/]*))(/(v\d+)?)?$')

def __init__(self, uri):
groups = self.versionre.match(uri).groups()
Expand Down

0 comments on commit 098a686

Please sign in to comment.