cleanup: return error type in updateVolWithImageInfo()

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-12-08 15:08:43 +01:00 committed by mergify[bot]
parent 610162b5f4
commit 57ce07f54e

View File

@ -1022,7 +1022,7 @@ func (rv *rbdVolume) updateVolWithImageInfo() error {
if stdout != "" {
err = json.Unmarshal([]byte(stdout), &imgInfo)
if err != nil {
return fmt.Errorf("unmarshal failed: %+v. raw buffer response: %s", err, stdout)
return fmt.Errorf("unmarshal failed (%w), raw buffer response: %s", err, stdout)
}
rv.Primary = imgInfo.Mirroring.Primary
}