Commit 82cce526 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

rpc: Fix another result processor

I forgot to change this in commit d9da5065

.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent f68cc544
......@@ -108,13 +108,10 @@ def _BlockdevGetMirrorStatusMultiPostProc(result):
"""Post-processor for L{rpc.RpcRunner.call_blockdev_getmirrorstatus_multi}.
"""
for nres in result.values():
if nres.fail_msg:
continue
for idx, (success, status) in enumerate(nres.payload):
if not result.fail_msg:
for idx, (success, status) in enumerate(result.payload):
if success:
nres.payload[idx] = (success, objects.BlockDevStatus.FromDict(status))
result.payload[idx] = (success, objects.BlockDevStatus.FromDict(status))
return result
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment