diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c index 2ff2018a43..4c30ee19c9 100644 --- a/src/vz/vz_driver.c +++ b/src/vz/vz_driver.c @@ -3995,11 +3995,8 @@ vzDomainBlockResize(virDomainPtr domain, if (vzEnsureDomainExists(dom) < 0) goto cleanup; - if (!virDomainObjIsActive(dom)) { - virReportError(VIR_ERR_OPERATION_INVALID, - "%s", _("domain is not running")); + if (virDomainObjCheckActive(dom) < 0) goto cleanup; - } if (!(disk = virDomainDiskByName(dom->def, path, false))) { virReportError(VIR_ERR_INVALID_ARG,