Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aganesh-suse committed Apr 5, 2024
1 parent 47b1310 commit 69871bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -678,10 +678,11 @@ func checkPodStatus(print bool) bool {
if podNotReady == 0 {
podsRunningStatus = true
}

return podsRunningStatus
}

// Wait for pods to reach running state.
// WaitForPodsRunning Waits for pods to reach running state.
func WaitForPodsRunning(defaultTime time.Duration, times int, print bool) error {
var podsRunning bool
for i := 1; i <= times; i++ {
Expand All @@ -695,5 +696,6 @@ func WaitForPodsRunning(defaultTime time.Duration, times int, print bool) error
if !podsRunning {
return ReturnLogError("All pods were not up at the end of wait period %d", int(defaultTime)*times)
}

return nil
}
1 change: 1 addition & 0 deletions shared/product.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,6 @@ func SecretEncryptOps(action, ip, product string) (string, error) {
return "", ReturnLogError(fmt.Sprintf("secrets-encryption %s action failed", action))
}
LogLevel("DEBUG", "%s output:\n %s", action, secretsEncryptStdOut)

return secretsEncryptStdOut, nil
}

0 comments on commit 69871bc

Please sign in to comment.