From 21e14d007a264cf60ec9a9f3fbbf1438571ec668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Sabat=C3=A9=20Sol=C3=A0?= Date: Mon, 28 Oct 2024 09:55:37 +0100 Subject: [PATCH] Only send labels if targetting SCC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- cmd/suseconnect/suseconnect.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/suseconnect/suseconnect.go b/cmd/suseconnect/suseconnect.go index 537b291d..0d21157e 100644 --- a/cmd/suseconnect/suseconnect.go +++ b/cmd/suseconnect/suseconnect.go @@ -298,8 +298,9 @@ func main() { } } - // After successful registration we try to set labels - if len(labels) > 0 { + // After successful registration we try to set labels if we are + // targetting SCC. + if connect.CFG.IsScc() && len(labels) > 0 { err := connect.AssignAndCreateLabels(strings.Split(labels, ",")) if err != nil && !jsonFlag { fmt.Printf("Problem setting labels for this system: %s\n", err)