Commit b04285f2 authored by Guido Trotter's avatar Guido Trotter
Browse files

LUQueryExports: fix rpcresult handling

call_export_list is a multi node call, so we need to go through the
results, extrapolate the good ones, and return a failure value for the
bad ones.

Reviewed-by: imsnah
parent 0fff97e9
......@@ -5349,9 +5349,15 @@ class LUQueryExports(NoHooksLU):
that node.
result = self.rpc.call_export_list(self.nodes)
rpcresult = self.rpc.call_export_list(self.nodes)
result = {}
for node in rpcresult:
if rpcresult[node].failed:
result[node] = False
result[node] = rpcresult[node].data
return result
class LUExportInstance(LogicalUnit):
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