Regression with enabling Satellite Tools repository found while using upstream community build
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1264192
Description of problem:
While using the upstream (community) build to test a few issues, I noticed that enabling the "Red Hat Satellite Tools 6.1 for RHEL 7 Server RPMs x86_64" repo set using the web ui failed with the following error:
["releasever"] cannot be specified for Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (RPMs) as that information is not substituable in /content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.1/os
Partha has narrowed down the cause which points to the following commit:
I'd like to ask that the commit mentioned above either be reverted or corrected, as it seems that the UI is passing a releasever = "" parameter and it shouldn't.
Version-Release number of selected component (if applicable):
Nightly (community) build
Steps to Reproduce:
1. Enable the "Red Hat Satellite Tools 6.1 for RHEL 7 Server RPMs x86_64" repo set using the web ui
Error is displayed in the ui
Fixes #11876 - Enable non basearch/releasever repos
The UI code after commit 70f91b26dc04765f3b9c9cd14d12996ddace79ec 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