Skip to content

Commit

Permalink
Only send labels if targetting SCC
Browse files Browse the repository at this point in the history
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
  • Loading branch information
mssola committed Oct 28, 2024
1 parent 77d734f commit 21e14d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/suseconnect/suseconnect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 21e14d0

Please sign in to comment.