summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortermie <github@anarkystic.com>2011-05-25 15:42:24 -0700
committertermie <github@anarkystic.com>2011-05-25 15:42:24 -0700
commit7622e854ef68fbdbfc531690cf74916301956c8e (patch)
tree5ef54d03953c27628ed8fff37835b317297d72d5
parentd46c9fffe4fab8f55483c73d3e6ef12116de9bc5 (diff)
downloadnova-7622e854ef68fbdbfc531690cf74916301956c8e.tar.gz
nova-7622e854ef68fbdbfc531690cf74916301956c8e.tar.xz
nova-7622e854ef68fbdbfc531690cf74916301956c8e.zip
add commented out unworking code for yield-based returns
-rw-r--r--nova/rpc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/rpc.py b/nova/rpc.py
index 04198a4a6..f43291c4b 100644
--- a/nova/rpc.py
+++ b/nova/rpc.py
@@ -201,6 +201,11 @@ class AdapterConsumer(Consumer):
try:
rval = node_func(context=ctxt, **node_args)
if msg_id:
+ # TODO(termie): re-enable when fix the yielding issue
+ #if hasattr(rval, 'send'):
+ # logging.error('rval! %s', rval)
+ # for x in rval:
+ # msg_reply(msg_id, x, None)
msg_reply(msg_id, rval, None)
except Exception as e:
logging.exception('Exception during message handling')