distro: Only add rhsm facts stage for RHEL
This commit is contained in:
parent
d7b8bb122c
commit
5f29dc312a
2 changed files with 2 additions and 2 deletions
|
|
@ -690,7 +690,7 @@ func osPipeline(t *imageType,
|
|||
p.AddStage(osbuild.NewSELinuxStage(selinuxStageOptions(false)))
|
||||
}
|
||||
|
||||
if options.Facts != nil {
|
||||
if t.arch.distro.isRHEL() && options.Facts != nil {
|
||||
p.AddStage(osbuild.NewRHSMFactsStage(&osbuild.RHSMFactsStageOptions{
|
||||
Facts: osbuild.RHSMFacts{
|
||||
ApiType: options.Facts.ApiType,
|
||||
|
|
|
|||
|
|
@ -688,7 +688,7 @@ func osPipeline(t *imageType,
|
|||
p.AddStage(osbuild.NewSELinuxStage(selinuxStageOptions(false)))
|
||||
}
|
||||
|
||||
if options.Facts != nil {
|
||||
if t.arch.distro.isRHEL() && options.Facts != nil {
|
||||
p.AddStage(osbuild.NewRHSMFactsStage(&osbuild.RHSMFactsStageOptions{
|
||||
Facts: osbuild.RHSMFacts{
|
||||
ApiType: options.Facts.ApiType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue