From 3f752d976d077d1eed3e8aa1a4bf39dd72296b0d Mon Sep 17 00:00:00 2001
From: Manuel Franceschini <manuel.franceschini@gmail.com>
Date: Tue, 25 Mar 2008 17:48:41 +0000
Subject: [PATCH] Modify Disk.GetNodes() to support LD_FILE

Reviewed-by: iustinp
---
 lib/objects.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/objects.py b/lib/objects.py
index b782c26c7..74c0c7e64 100644
--- a/lib/objects.py
+++ b/lib/objects.py
@@ -363,7 +363,8 @@ class Disk(ConfigObject):
     devices needs to (or can) be assembled.
 
     """
-    if self.dev_type == constants.LD_LV or self.dev_type == constants.LD_MD_R1:
+    if self.dev_type in [constants.LD_LV, constants.LD_MD_R1,
+                         constants.LD_FILE]:
       result = [node]
     elif self.dev_type in constants.LDS_DRBD:
       result = [self.logical_id[0], self.logical_id[1]]
-- 
GitLab