From 1a8c37b8775ce9794b571f4f7fb0088e50e8bb95 Mon Sep 17 00:00:00 2001 From: Luca Burgazzoli Date: Thu, 10 Nov 2022 09:48:51 +0100 Subject: [PATCH] rhoc: fix misleading ocm id --- rhoc/pkg/cmd/clusters/get/get.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rhoc/pkg/cmd/clusters/get/get.go b/rhoc/pkg/cmd/clusters/get/get.go index 65bfc2d..bfe0b60 100644 --- a/rhoc/pkg/cmd/clusters/get/get.go +++ b/rhoc/pkg/cmd/clusters/get/get.go @@ -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"` @@ -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 {