summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Component.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-07-11 10:48:44 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-07-11 10:48:44 -0400
commitb35d708ea1e56a8d79b2f4e5651c57ebc99e7f8d (patch)
tree6459df3f2e966f3f82ed40f2997737c49be483a6 /src/lib/Bcfg2/Component.py
parent0140c43ad7392725c8ca0e2d59c84b07bc4628bc (diff)
downloadbcfg2-b35d708ea1e56a8d79b2f4e5651c57ebc99e7f8d.tar.gz
bcfg2-b35d708ea1e56a8d79b2f4e5651c57ebc99e7f8d.tar.bz2
bcfg2-b35d708ea1e56a8d79b2f4e5651c57ebc99e7f8d.zip
added feature to allow clients to declare their version to server
Diffstat (limited to 'src/lib/Bcfg2/Component.py')
-rw-r--r--src/lib/Bcfg2/Component.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Component.py b/src/lib/Bcfg2/Component.py
index b6cea3e22..3ee3a14c8 100644
--- a/src/lib/Bcfg2/Component.py
+++ b/src/lib/Bcfg2/Component.py
@@ -216,7 +216,8 @@ class Component (object):
method_func = self._resolve_exposed_method(method)
except NoExposedMethod:
self.logger.error("Unknown method %s" % (method))
- raise xmlrpclib.Fault(7, "Unknown method %s" % method)
+ raise xmlrpclib.Fault(xmlrpclib.METHOD_NOT_FOUND,
+ "Unknown method %s" % method)
except Exception:
e = sys.exc_info()[1]
if getattr(e, "log", True):