Fix issue 2906
This commit is contained in:
parent
eb9a598363
commit
438ab750c3
1 changed files with 9 additions and 8 deletions
17
system/setup
17
system/setup
|
@ -626,14 +626,15 @@ class LinuxHardware(Hardware):
|
||||||
d['host'] = m.group(1)
|
d['host'] = m.group(1)
|
||||||
|
|
||||||
d['holders'] = []
|
d['holders'] = []
|
||||||
for folder in os.listdir(sysdir + "/holders"):
|
if os.path.isdir(sysdir + "/holders"):
|
||||||
if not folder.startswith("dm-"):
|
for folder in os.listdir(sysdir + "/holders"):
|
||||||
continue
|
if not folder.startswith("dm-"):
|
||||||
name = get_file_content(sysdir + "/holders/" + folder + "/dm/name")
|
continue
|
||||||
if name:
|
name = get_file_content(sysdir + "/holders/" + folder + "/dm/name")
|
||||||
d['holders'].append(name)
|
if name:
|
||||||
else:
|
d['holders'].append(name)
|
||||||
d['holders'].append(folder)
|
else:
|
||||||
|
d['holders'].append(folder)
|
||||||
|
|
||||||
self.facts['devices'][diskname] = d
|
self.facts['devices'][diskname] = d
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue