summaryrefslogtreecommitdiffstats
path: root/minion
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-28 15:37:55 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-28 15:37:55 -0400
commitfe2993777f86b479bec4e2daf7eef91813537f6d (patch)
tree2f993b7ae9eca2e0e2d1b65b3fef77f2bdc27156 /minion
parent114dd90baf8d300e7ba6f058fe42a0d2ebdbd223 (diff)
parent99a55551d25a81bf019a90193f084eba386f2512 (diff)
downloadthird_party-func-fe2993777f86b479bec4e2daf7eef91813537f6d.tar.gz
third_party-func-fe2993777f86b479bec4e2daf7eef91813537f6d.tar.xz
third_party-func-fe2993777f86b479bec4e2daf7eef91813537f6d.zip
Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/func
Diffstat (limited to 'minion')
-rwxr-xr-xminion/module_loader.py3
-rwxr-xr-xminion/server.py5
2 files changed, 5 insertions, 3 deletions
diff --git a/minion/module_loader.py b/minion/module_loader.py
index eef7433..4538fb2 100755
--- a/minion/module_loader.py
+++ b/minion/module_loader.py
@@ -18,7 +18,8 @@
import distutils.sysconfig
import os
import sys
-from rhpl.translate import _
+from gettext import gettext
+_ = gettext
def module_walker(topdir):
diff --git a/minion/server.py b/minion/server.py
index fcfe537..5671836 100755
--- a/minion/server.py
+++ b/minion/server.py
@@ -21,7 +21,7 @@ import sys
import traceback
import socket
-from rhpl.translate import textdomain
+from gettext import textdomain
I18N_DOMAIN = "func"
@@ -192,6 +192,7 @@ class FuncSSLXMLRPCServer(AuthedXMLRPCServer.AuthedSSLXMLRPCServer,
if hasattr(self, '_this_request'):
r,a = self._this_request
p = r.get_peer_certificate()
+ ip = a[0]
cn = p.get_subject().CN
sub_hash = p.subject_name_hash()
else:
@@ -199,7 +200,7 @@ class FuncSSLXMLRPCServer(AuthedXMLRPCServer.AuthedSSLXMLRPCServer,
# XXX FIXME - need to figure out how to dig into the server base classes
# so we can get client ip, and eventually cert id info -akl
- self.audit_logger.log_call(cn, sub_hash, method, params)
+ self.audit_logger.log_call(ip, cn, sub_hash, method, params)
return self.get_dispatch_method(method)(*params)