summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Admin
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Admin')
-rw-r--r--src/lib/Server/Admin/Xcmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Admin/Xcmd.py b/src/lib/Server/Admin/Xcmd.py
index 7591c0c45..7d6195fa0 100644
--- a/src/lib/Server/Admin/Xcmd.py
+++ b/src/lib/Server/Admin/Xcmd.py
@@ -41,7 +41,7 @@ class Xcmd(Bcfg2.Server.Admin.Mode):
try:
data = apply(getattr(proxy, cmd), args)
except xmlrpclib.Fault, flt:
- if flt.faultCode == 1:
+ if flt.faultCode == 7:
print("Unknown method %s" % cmd)
return
else: