]> xenbits.xensource.com Git - libvirt.git/commitdiff
lxc: Fix incorrect changes on error codes.
authorOsier Yang <jyang@redhat.com>
Thu, 1 Sep 2011 06:25:37 +0000 (14:25 +0800)
committerOsier Yang <jyang@redhat.com>
Thu, 1 Sep 2011 09:34:31 +0000 (17:34 +0800)
Fix incorrect changes introduced by commit 6ac47762bb9.

src/lxc/lxc_driver.c

index 5587b06ca8eb52c8b028b4eced10b73d1885d592..6b716c11cbad91a8a0fe9288a4f94d06927cca0a 100644 (file)
@@ -1786,7 +1786,7 @@ lxcDomainCreateAndStart(virConnectPtr conn,
         goto cleanup;
 
     if ((def->nets != NULL) && !(driver->have_netns)) {
-        lxcError(VIR_ERR_OPERATION_INVALID,
+        lxcError(VIR_ERR_CONFIG_UNSUPPORTED,
                  "%s", _("System lacks NETNS support"));
         goto cleanup;
     }
@@ -2519,8 +2519,7 @@ static int
 lxcDomainInterfaceStats(virDomainPtr dom,
                         const char *path ATTRIBUTE_UNUSED,
                         struct _virDomainInterfaceStats *stats ATTRIBUTE_UNUSED)
-    lxcError(VIR_ERR_OPERATION_INVALID, "%s",
-             _("interface stats not implemented on this platform"));
+    lxcError(VIR_ERR_NO_SUPPORT, "%s", __FUNCTION__);
     return -1;
 }
 #endif