Commit a1cef11c fixed non-vm_capable nodes export, but broke
inadvertently offline nodes. The update of the dict only needs to
happen for online nodes, in the 'if' block.

Without this patch, offline nodes keep the data from the last node
that was not offline; end result is that all nodes are considered
offline (unless the first node is offline, in which case and error
will be raised).
---
 lib/cmdlib.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 782768d..c062250 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -11025,8 +11025,7 @@ class IAllocator(object):
           "i_pri_up_memory": i_p_up_mem,
           }
         pnr_dyn.update(node_results[nname])
-
-      node_results[nname] = pnr_dyn
+        node_results[nname] = pnr_dyn
 
     return node_results
 
-- 
1.7.3.1

Reply via email to