summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-01-29 16:31:39 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-01-29 16:31:39 -0500
commit6c47e982fa3089f86ce96742b0673dc320ac208e (patch)
tree5fcd4d6c53ceebc8453afa3ea8366be5da653318 /func
parent168f3ec79a2fbee4addf5e4d131a46325ad9c231 (diff)
downloadthird_party-func-6c47e982fa3089f86ce96742b0673dc320ac208e.tar.gz
third_party-func-6c47e982fa3089f86ce96742b0673dc320ac208e.tar.xz
third_party-func-6c47e982fa3089f86ce96742b0673dc320ac208e.zip
Two kinds of utils!
Diffstat (limited to 'func')
-rwxr-xr-xfunc/minion/server.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/func/minion/server.py b/func/minion/server.py
index 7a760a0..f1b827f 100755
--- a/func/minion/server.py
+++ b/func/minion/server.py
@@ -29,12 +29,13 @@ from func.commonconfig import FuncdConfig
from func import logger
from func import certs
import func.jobthing as jobthing
+import utils
# our modules
import AuthedXMLRPCServer
import codes
import module_loader
-import utils
+import func.utils as futils
@@ -132,11 +133,11 @@ class FuncApiMethod:
except codes.FuncException, e:
self.__log_exc()
(t, v, tb) = sys.exc_info()
- rc = utils.nice_exception(t,v,tb)
+ rc = futils.nice_exception(t,v,tb)
except:
self.__log_exc()
(t, v, tb) = sys.exc_info()
- rc = utils.nice_exception(t,v,tb)
+ rc = futils.nice_exception(t,v,tb)
self.logger.debug("Return code for %s: %s" % (self.__name, rc))
return rc
@@ -226,7 +227,7 @@ class FuncSSLXMLRPCServer(AuthedXMLRPCServer.AuthedSSLXMLRPCServer,
return jobthing.minion_async_run(self.get_dispatch_method, method, params)
except:
(t, v, tb) = sys.exc_info()
- rc = utils.nice_exception(t, v, tb)
+ rc = futils.nice_exception(t, v, tb)
return rc
def auth_cb(self, request, client_address):
@@ -266,7 +267,7 @@ def main(argv):
"""
if "daemon" in sys.argv or "--daemon" in sys.argv:
- utils.daemonize("/var/run/funcd.pid")
+ futils.daemonize("/var/run/funcd.pid")
else:
print "serving...\n"