* src/lxc_driver.c: fix a couple of error code, patch by Amy Griffis

daniel
This commit is contained in:
Daniel Veillard 2009-05-20 07:12:00 +00:00
parent 2d1de285b3
commit 6a140adb78
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed May 20 09:10:28 CEST 2009 Daniel Veillard <veillard@redhat.com>
* src/lxc_driver.c: fix a couple of error code, patch by
Amy Griffis
Tue May 19 09:39:01 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/storage_backend_fs.c: VolumeCreateXMLFrom FS storage

View File

@ -329,13 +329,13 @@ static int lxcDomainUndefine(virDomainPtr dom)
}
if (virDomainIsActive(vm)) {
lxcError(dom->conn, dom, VIR_ERR_INTERNAL_ERROR,
lxcError(dom->conn, dom, VIR_ERR_OPERATION_INVALID,
"%s", _("cannot delete active domain"));
goto cleanup;
}
if (!vm->persistent) {
lxcError(dom->conn, dom, VIR_ERR_INTERNAL_ERROR,
lxcError(dom->conn, dom, VIR_ERR_OPERATION_INVALID,
"%s", _("cannot undefine transient domain"));
goto cleanup;
}