Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
raaizik committed Mar 25, 2024
1 parent a77b4e4 commit 77e9273
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/status-report/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func main() {
}

var pltVersion string
var clusterId configv1.ClusterID
var clusterID configv1.ClusterID
clusterVersion := &configv1.ClusterVersion{}
clusterVersion.Name = "version"
if err = cl.Get(ctx, types.NamespacedName{Name: clusterVersion.Name}, clusterVersion); err != nil {
Expand All @@ -122,7 +122,7 @@ func main() {
if item != nil {
pltVersion = item.Version
}
clusterId = clusterVersion.Spec.ClusterID
clusterID = clusterVersion.Spec.ClusterID
}
if pltVersion == "" {
klog.Warningf("Unable to find ocp version with completed update")
Expand All @@ -146,7 +146,7 @@ func main() {
status := providerclient.NewStorageClientStatus().
SetPlatformVersion(pltVersion).
SetOperatorVersion(oprVersion).
SetClusterID(string(clusterId)).
SetClusterID(string(clusterID)).
SetNamespacedName(namespacedName.String())
statusResponse, err := providerClient.ReportStatus(ctx, storageClient.Status.ConsumerID, status)
if err != nil {
Expand Down

0 comments on commit 77e9273

Please sign in to comment.