Commit 3f752d97 authored by Manuel Franceschini's avatar Manuel Franceschini
Browse files

Modify Disk.GetNodes() to support LD_FILE

Reviewed-by: iustinp
parent 04fa07f2
......@@ -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,
result = [node]
elif self.dev_type in constants.LDS_DRBD:
result = [self.logical_id[0], self.logical_id[1]]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment