diff options
author | Jean-Baptiste Rouault <jean-baptiste.rouault@diateam.net> | 2010-07-30 10:36:06 +0200 |
---|---|---|
committer | Matthias Bolte <matthias.bolte@googlemail.com> | 2010-07-30 22:25:32 +0200 |
commit | fd81a097298c64870c78beff5615319b9f86e895 (patch) | |
tree | fddea0208da002085f286a6db9b7f236c54948c2 | |
parent | storage: kill dead stores (diff) | |
download | libvirt-fd81a097298c64870c78beff5615319b9f86e895.tar.gz libvirt-fd81a097298c64870c78beff5615319b9f86e895.tar.bz2 libvirt-fd81a097298c64870c78beff5615319b9f86e895.zip |
openvzDomainCreateWithFlags: set domain id to the correct value
When an openvz domain is defined with virDomainDefineXML,
domain id is set to -1. A call to virDomainGetInfo after
starting the domain would then fail because this invalid
id is passed to openvzGetProcessInfo.
-rw-r--r-- | src/openvz/openvz_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 98381fbad..e5bbdd0d5 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -992,6 +992,7 @@ openvzDomainCreateWithFlags(virDomainPtr dom, unsigned int flags) vm->pid = strtoI(vm->def->name); vm->def->id = vm->pid; + dom->id = vm->pid; vm->state = VIR_DOMAIN_RUNNING; ret = 0; |