]> xenbits.xensource.com Git - libvirt.git/commitdiff
* src/lxc_driver.c: fix a couple of error code, patch by Amy Griffis
authorDaniel Veillard <veillard@redhat.com>
Wed, 20 May 2009 07:12:00 +0000 (07:12 +0000)
committerDaniel Veillard <veillard@redhat.com>
Wed, 20 May 2009 07:12:00 +0000 (07:12 +0000)
daniel

ChangeLog
src/lxc_driver.c

index 7e1c3dfe015b9f9ee77f1725ca80c663bd0a920a..2e5aa8c06f8dd2bd9ae67cb3ae6ac27298433226 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 5392af1bffa7f34047e9179413bf0534f19f32be..64c735dc26415be02d6601f0a1ace0caf6a4b697 100644 (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;
     }