Skip to content

Commit

Permalink
fix checksum option in Rsync command (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavgaikwad committed Mar 1, 2022
1 parent 47cfb53 commit f4e1310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/directvolumemigration/rsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ func (t *Task) getNamespacedPVCPairs() (map[string][]transfer.PVCPair, error) {
}

func (t *Task) getSourceSecurityGroupInfo(srcClient compat.Client, pvcPairMap map[string][]transfer.PVCPair) (pvcWithSecurityContextInfo, error) {
var pvcInfo pvcWithSecurityContextInfo
pvcInfo := make(pvcWithSecurityContextInfo)

for bothNS := range pvcPairMap {
srcNs := getSourceNs(bothNS)
Expand Down Expand Up @@ -708,8 +708,8 @@ func (t *Task) getSourceSecurityGroupInfo(srcClient compat.Client, pvcPairMap ma
seLinuxOptions: nil,
verify: pvc.Verify,
}
pvcInfo.Add(pvc.Name, pvc.Namespace, secInfo)
}
pvcInfo.Add(pvc.Name, pvc.Namespace, secInfo)
}
return pvcInfo, nil
}
Expand Down

0 comments on commit f4e1310

Please sign in to comment.