Skip to content

Commit

Permalink
Handle URIs as values of registry_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Jul 29, 2015
1 parent 365934c commit 80d3fa3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osbs/build/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ def set_params(self, git_uri=None, git_ref=None, registry_uri=None, user=None,
self.git_ref.value = git_ref
self.user.value = user
self.component.value = component
self.registry_uri.value = registry_uri
# We only want the hostname[:port]
self.registry_uri.value = re.sub(r'^https?://([^/]*)/?.*',
lambda m: m.groups()[0],
registry_uri)
self.openshift_uri.value = openshift_uri
if not (yum_repourls is None or isinstance(yum_repourls, list)):
raise OsbsValidationException("yum_repourls must be a list")
Expand Down

0 comments on commit 80d3fa3

Please sign in to comment.