Skip to content

Commit

Permalink
refactor getPucmState
Browse files Browse the repository at this point in the history
  • Loading branch information
niontive committed Jul 17, 2023
1 parent 3775b36 commit 2cefc95
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/monitor/cluster/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ func getPucmState(clusterProperties api.OpenShiftClusterProperties) pucmState {
if pucmOngoing(clusterProperties) {
if clusterProperties.PucmPending {
return pucmPlannedOngoing
} else {
return pucmUnplannedOngoing
}
} else {
if clusterProperties.PucmPending {
return pucmPending
}
return pucmUnplannedOngoing
} else if clusterProperties.PucmPending {
return pucmPending
}

return pucmNone
Expand Down

0 comments on commit 2cefc95

Please sign in to comment.