diff --git a/internal/rbd/rbd_util.go b/internal/rbd/rbd_util.go index 72643af87..039109950 100644 --- a/internal/rbd/rbd_util.go +++ b/internal/rbd/rbd_util.go @@ -1562,10 +1562,10 @@ func (rv *rbdVolume) getOrigSnapName(snapID uint64) (string, error) { func (ri *rbdImage) isCompatibleEncryption(dst *rbdImage) error { switch { case ri.isEncrypted() && !dst.isEncrypted(): - return fmt.Errorf("encrypted volume %q does not match unencrypted volume %q", ri, dst) + return fmt.Errorf("cannot create unencrypted volume from encrypted volume %q", ri) case !ri.isEncrypted() && dst.isEncrypted(): - return fmt.Errorf("unencrypted volume %q does not match encrypted volume %q", ri, dst) + return fmt.Errorf("cannot create encrypted volume from unencrypted volume %q", ri) } return nil