Skip to content
Snippets Groups Projects
Commit 3f752d97 authored by Manuel Franceschini's avatar Manuel Franceschini
Browse files

Modify Disk.GetNodes() to support LD_FILE

Reviewed-by: iustinp
parent 04fa07f2
No related branches found
No related tags found
No related merge requests found
......@@ -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]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment