From 68c6f21cffa87119d401556285dc207638c27369 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Wed, 28 Jan 2009 19:06:11 +0000
Subject: [PATCH] Fix gnt-cluster modify -H and offline nodes

Reviewed-by: ultrotter
---
 lib/cmdlib.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 0cf29558a..9eb80cb61 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -4083,6 +4083,8 @@ def _CheckHVParams(lu, nodenames, hvname, hvparams):
                                                   hvparams)
   for node in nodenames:
     info = hvinfo[node]
+    if info.offline:
+      continue
     info.Raise()
     if not info.data or not isinstance(info.data, (tuple, list)):
       raise errors.OpPrereqError("Cannot get current information"
-- 
GitLab