Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx> --- src/vz/vz_driver.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c index 0079384..8e39a5d 100644 --- a/src/vz/vz_driver.c +++ b/src/vz/vz_driver.c @@ -1026,13 +1026,15 @@ vzDomainResume(virDomainPtr domain) } static int -vzDomainCreate(virDomainPtr domain) +vzDomainCreateWithFlags(virDomainPtr domain, unsigned int flags) { vzConnPtr privconn = domain->conn->privateData; virDomainObjPtr dom; int ret = -1; bool job = false; + virCheckFlags(0, -1); + if (!(dom = vzDomObjFromDomainRef(domain))) return -1; @@ -1178,12 +1180,9 @@ static int vzDomainIsActive(virDomainPtr domain) } static int -vzDomainCreateWithFlags(virDomainPtr domain, unsigned int flags) +vzDomainCreate(virDomainPtr domain) { - /* we don't support any create flags */ - virCheckFlags(0, -1); - - return vzDomainCreate(domain); + return vzDomainCreateWithFlags(domain, 0); } static int -- 1.8.3.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list