summaryrefslogtreecommitdiffstats
path: root/func/utils.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-01-24 17:30:09 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-01-24 17:30:09 -0500
commit8106c1d88407371505115e7938dc99bcaf6fb1e9 (patch)
tree7533cf08de4cf4f038a638c27dac8d438d6d6f65 /func/utils.py
parentf3e03a6e1cf1696a5c194c662142ea0354726d9d (diff)
downloadfunc-8106c1d88407371505115e7938dc99bcaf6fb1e9.tar.gz
func-8106c1d88407371505115e7938dc99bcaf6fb1e9.tar.xz
func-8106c1d88407371505115e7938dc99bcaf6fb1e9.zip
Still working on async (pardon the debug output still), there's a long ways to go with the partial status
reporting but it is getting better at actually doing the task, just a few kinks to work out in getting results reported correctly.
Diffstat (limited to 'func/utils.py')
-rwxr-xr-xfunc/utils.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/func/utils.py b/func/utils.py
index 140b761..c2fbb9f 100755
--- a/func/utils.py
+++ b/func/utils.py
@@ -55,32 +55,26 @@ def remove_exceptions(results):
"""
if results is None:
- print "DEBUG: A"
return REMOTE_CANARY
if str(results).startswith("<Fault"):
- print "DEBUG: B"
return REMOTE_CANARY
if type(results) == xmlrpclib.Fault:
- print "DEBUG: C"
return REMOTE_CANARY
if type(results) == dict:
new_results = {}
for x in results.keys():
value = results[x]
- # print "DEBUG: checking against: %s" % str(value)
if str(value).find("<Fault") == -1:
# there are interesting issues with the way it is imported and type()
# so that is why this hack is here. type(x) != xmlrpclib.Fault appears to miss some things
new_results[x] = value
else:
new_results[x] = REMOTE_CANARY
- # print "DEBUG: removed exceptions = %s" % new_results
return new_results
- print "DEBUG: removed exceptions = %s" % results
return results