~cbehrens/nova/rpc_multicall

« back to all changes in this revision

Viewing changes to nova/rpc.py

  • Committer: termie
  • Date: 2011-05-20 00:32:55 UTC
  • Revision ID: github@anarkystic.com-20110520003255-u1yf12f7rkh90au2
make sure that using multicall on a call with a single result still functions

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
                    logging.error('rval! %s', rval)
228
228
                    for x in rval:
229
229
                        msg_reply(msg_id, x, None)
230
 
                    msg_reply(msg_id, None, None)
231
230
                else:
232
231
                    msg_reply(msg_id, rval, None)
233
 
                #msg_reply(msg_id, rval, None)
 
232
                # This final None tells multicall that it is done.
 
233
                msg_reply(msg_id, None, None)
234
234
        except Exception as e:
235
235
            logging.exception('Exception during message handling')
236
236
            if msg_id: