vz: set something in disk driver name

Absent driver name attribute is invalid xml. Which in turn makes
unusable 'virsh edit' for example. The value does not make
much sense and ignored on input so nobody will hurt.
This commit is contained in:
Nikolay Shirokovskiy 2016-09-22 17:55:42 +03:00 committed by Maxim Nestratov
parent d6e3af6209
commit bdaf5e8098

View File

@ -647,6 +647,9 @@ prlsdkGetDiskInfo(vzDriverPtr driver,
VIR_FREE(disk->serial);
}
if (virDomainDiskSetDriver(disk, "vz") < 0)
goto cleanup;
ret = 0;
cleanup: