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/__init__.py b/lib/config/__init__.py index 33e77d4..7c595a5 100644 --- a/lib/config/__init__.py +++ b/lib/config/__init__.py @@ -576,8 +576,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
