Skip to content

Commit 1a8c37b

Browse files
committed
rhoc: fix misleading ocm id
1 parent ac90cb0 commit 1a8c37b

File tree

1 file changed

+1
-3
lines changed
  • rhoc/pkg/cmd/clusters/get

1 file changed

+1
-3
lines changed

rhoc/pkg/cmd/clusters/get/get.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ type options struct {
3030

3131
type ocmInfo struct {
3232
ID string `json:"id,omitempty" yaml:"id,omitempty"`
33-
ClusterID string `json:"cluster_id,omitempty" yaml:"cluster_id,omitempty"`
3433
Console string `json:"cluster_console,omitempty" yaml:"cluster_console,omitempty"`
3534
ProductID string `json:"product_id,omitempty" yaml:"product_id,omitempty"`
3635
CloudProvider string `json:"cloud_provider,omitempty" yaml:"cloud_provider,omitempty"`
@@ -101,8 +100,7 @@ func run(opts *options) error {
101100

102101
if cluster != nil {
103102
i.Ocm = &ocmInfo{
104-
ID: cluster.ExternalID(),
105-
ClusterID: cluster.ID(),
103+
ID: cluster.ID(),
106104
}
107105

108106
if cluster.Product() != nil {

0 commit comments

Comments
 (0)