Skip to content

Commit

Permalink
rhoc: fix misleading ocm id
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Nov 10, 2022
1 parent ac90cb0 commit 1a8c37b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rhoc/pkg/cmd/clusters/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ type options struct {

type ocmInfo struct {
ID string `json:"id,omitempty" yaml:"id,omitempty"`
ClusterID string `json:"cluster_id,omitempty" yaml:"cluster_id,omitempty"`
Console string `json:"cluster_console,omitempty" yaml:"cluster_console,omitempty"`
ProductID string `json:"product_id,omitempty" yaml:"product_id,omitempty"`
CloudProvider string `json:"cloud_provider,omitempty" yaml:"cloud_provider,omitempty"`
Expand Down Expand Up @@ -101,8 +100,7 @@ func run(opts *options) error {

if cluster != nil {
i.Ocm = &ocmInfo{
ID: cluster.ExternalID(),
ClusterID: cluster.ID(),
ID: cluster.ID(),
}

if cluster.Product() != nil {
Expand Down

0 comments on commit 1a8c37b

Please sign in to comment.