Navigation Menu

Skip to content

Commit

Permalink
Fixes #11876 - Enable non basearch/releasever repos
Browse files Browse the repository at this point in the history
The UI code after commit 70f91b2 sent releasever
and basearch info to the controller as empty values for repos that didnt need this information.
This caused the controller to complain that bad substitutions were given to it.
This commit fixes that issue by not sending that information if they are
not needed.
  • Loading branch information
parthaa committed Sep 18, 2015
1 parent c018a80 commit 92f120a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/views/katello/providers/redhat/_repos.html.erb
Expand Up @@ -32,8 +32,12 @@
<% if result[:registry_name] %>
data-registry-name="<%= result[:registry_name] %>"
<% end %>
data-releasever="<%= result[:substitutions][:releasever] %>"
data-basearch="<%= result[:substitutions][:basearch] %>"
<% if result[:substitutions][:releasever] %>
data-releasever="<%= result[:substitutions][:releasever] %>"
<% end %>
<% if result[:substitutions][:basearch] %>
data-basearch="<%= result[:substitutions][:basearch] %>"
<% end %>
<% if result[:promoted] %>
disabled="disabled"
<% end %>
Expand Down

0 comments on commit 92f120a

Please sign in to comment.