diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-07-11 10:48:44 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-07-11 10:48:44 -0400 |
commit | b35d708ea1e56a8d79b2f4e5651c57ebc99e7f8d (patch) | |
tree | 6459df3f2e966f3f82ed40f2997737c49be483a6 /src/lib/Bcfg2/Component.py | |
parent | 0140c43ad7392725c8ca0e2d59c84b07bc4628bc (diff) | |
download | bcfg2-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.py | 3 |
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): |