Skip to content

Commit

Permalink
Fix and reformat 2 comments
Browse files Browse the repository at this point in the history
Signed-off-by: Benamar Mekhissi <bmekhiss@ibm.com>
  • Loading branch information
Benamar Mekhissi committed Dec 4, 2023
1 parent 29cdd89 commit 8e950a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/drplacementcontrol.go
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ func (d *DRPCInstance) switchToCluster(targetCluster, targetClusterNamespace str
vrgState = vrg.Status.State
}

d.log.Info(fmt.Sprintf("PVs/PVCs have been Restored? %v and VRG Primary %v", restored, vrgState))
d.log.Info(fmt.Sprintf("PVs/PVCs have been Restored? '%v' and VRG Primary='%v'", restored, vrgState))

if !restored || vrg.Status.State != rmn.PrimaryState {
d.setProgression(rmn.ProgressionWaitingForResourceRestore)
Expand Down Expand Up @@ -1987,7 +1987,7 @@ func (d *DRPCInstance) ensureVRGDeleted(clusterName string) bool {
}

func (d *DRPCInstance) updateVRGState(clusterName string, state rmn.ReplicationState) (bool, error) {
d.log.Info(fmt.Sprintf("Updating VRG ReplicationState to secondary for cluster %s", clusterName))
d.log.Info(fmt.Sprintf("Updating VRG ReplicationState to %s for cluster %s", state, clusterName))

vrg, err := d.getVRGFromManifestWork(clusterName)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions controllers/util/mw_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ func (mwu *MWUtil) createOrUpdateManifestWork(

func (mwu *MWUtil) GetVRGManifestWorkCount(drClusters []string) int {
count := 0

for _, clusterName := range drClusters {
_, err := mwu.FindManifestWorkByType(MWTypeVRG, clusterName)
if err != nil {
Expand Down

0 comments on commit 8e950a6

Please sign in to comment.