The list for non-DRBD instances is never empty. It always contains the
primary node of the instance.

Signed-off-by: Alex Pyrgiotis <[email protected]>

diff --git a/lib/config.py b/lib/config.py
index 11cd2f0..cd4400b 100644
--- a/lib/config.py
+++ b/lib/config.py
@@ -676,8 +676,9 @@ class ConfigWriter(object):
   def _UnlockedGetInstanceNodes(self, inst_uuid):
     """Get all disk-related nodes for an instance.
 
-    For non-DRBD, this will be empty, for DRBD it will contain both
-    the primary and the secondaries.
+    For non-DRBD instances, this will contain only the instance's primary node,
+    whereas for DRBD instances, it will contain both the primary and the
+    secondaries.
 
     @type inst_uuid: string
     @param inst_uuid: The UUID of the instance we want to get nodes for
-- 
1.7.10.4

Reply via email to