mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
cleanup: spell check getImageMirroingStatus
This commit corrects the spelling for getImageMirroingStatus() -> getImageMirroringStatus Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
parent
d941e5abac
commit
f210d5758b
@ -127,8 +127,8 @@ type imageMirrorStatus struct {
|
||||
}
|
||||
|
||||
// FIXME: once https://github.com/ceph/go-ceph/issues/460 is fixed use go-ceph.
|
||||
// getImageMirroingStatus get the mirroring status of an image.
|
||||
func (ri *rbdImage) getImageMirroingStatus() (*imageMirrorStatus, error) {
|
||||
// getImageMirroringStatus get the mirroring status of an image.
|
||||
func (ri *rbdImage) getImageMirroringStatus() (*imageMirrorStatus, error) {
|
||||
// rbd mirror image status --format=json info [image-spec | snap-spec]
|
||||
var imgStatus imageMirrorStatus
|
||||
stdout, stderr, err := util.ExecCommand(
|
||||
|
@ -515,7 +515,7 @@ func (rs *ReplicationServer) ResyncVolume(ctx context.Context,
|
||||
return nil, status.Error(codes.InvalidArgument, "image is in primary state")
|
||||
}
|
||||
|
||||
mirrorStatus, err := rbdVol.getImageMirroingStatus()
|
||||
mirrorStatus, err := rbdVol.getImageMirroringStatus()
|
||||
if err != nil {
|
||||
// the image gets recreated after issuing resync in that case return
|
||||
// volume as not ready.
|
||||
|
Loading…
Reference in New Issue
Block a user