Skip to content

Commit

Permalink
Minor image_nodes_error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bhati-pradeep committed Mar 29, 2022
1 parent f5fcc36 commit 7b726d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nutanix/resource_nutanix_foundation_image_nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ func collectIndividualErrorDiagnostics(progress *foundation.ImageNodesProgressRe

// append errors for failed node imaging
for _, v := range progress.Nodes {
if utils.Float64Value(v.TimeElapsed) < float64(AggregatePercentComplete) {
if utils.Float64Value(v.PercentComplete) < float64(AggregatePercentComplete) {
message := ""
for _, v1 := range v.Messages {
message += v1 + ". "
Expand All @@ -1329,7 +1329,7 @@ func collectIndividualErrorDiagnostics(progress *foundation.ImageNodesProgressRe

// append errors for failed cluster creation
for _, v := range progress.Clusters {
if utils.Float64Value(v.TimeElapsed) < float64(AggregatePercentComplete) {
if utils.Float64Value(v.PercentComplete) < float64(AggregatePercentComplete) {
message := ""
for _, v1 := range v.Messages {
message += v1 + ". "
Expand Down

0 comments on commit 7b726d5

Please sign in to comment.