Skip to content

Commit

Permalink
Merge pull request #533 from AlexVulaj/remove-banned-user-sl
Browse files Browse the repository at this point in the history
Remove SL being sent when banned user is found
  • Loading branch information
openshift-merge-bot[bot] authored Mar 18, 2024
2 parents 5881486 + ccd465f commit bac5b2c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/cluster/checkbanneduser.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cluster

import (
"fmt"
"github.com/openshift/osdctl/cmd/servicelog"
"github.com/openshift/osdctl/pkg/utils"
"github.com/spf13/cobra"
cmdutil "k8s.io/kubectl/pkg/cmd/util"
Expand Down Expand Up @@ -68,15 +67,6 @@ func CheckBannedUser(clusterID string) error {
return nil
}

fmt.Println("Sending service log.")
postCmd := servicelog.PostCmdOptions{
Template: "https://raw.githubusercontent.com/openshift/managed-notifications/master/ocm/cluster_owner_disabled.json",
ClusterId: clusterID,
}
if err = postCmd.Run(); err != nil {
return err
}

return nil
}
fmt.Println("User allowed")
Expand Down

0 comments on commit bac5b2c

Please sign in to comment.