diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-01-24 17:30:09 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-01-24 17:30:09 -0500 |
commit | 8106c1d88407371505115e7938dc99bcaf6fb1e9 (patch) | |
tree | 7533cf08de4cf4f038a638c27dac8d438d6d6f65 /func/utils.py | |
parent | f3e03a6e1cf1696a5c194c662142ea0354726d9d (diff) | |
download | func-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-x | func/utils.py | 6 |
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 |