|
|
|
@ -626,14 +626,15 @@ class LinuxHardware(Hardware):
|
|
|
|
|
d['host'] = m.group(1)
|
|
|
|
|
|
|
|
|
|
d['holders'] = []
|
|
|
|
|
for folder in os.listdir(sysdir + "/holders"):
|
|
|
|
|
if not folder.startswith("dm-"):
|
|
|
|
|
continue
|
|
|
|
|
name = get_file_content(sysdir + "/holders/" + folder + "/dm/name")
|
|
|
|
|
if name:
|
|
|
|
|
d['holders'].append(name)
|
|
|
|
|
else:
|
|
|
|
|
d['holders'].append(folder)
|
|
|
|
|
if os.path.isdir(sysdir + "/holders"):
|
|
|
|
|
for folder in os.listdir(sysdir + "/holders"):
|
|
|
|
|
if not folder.startswith("dm-"):
|
|
|
|
|
continue
|
|
|
|
|
name = get_file_content(sysdir + "/holders/" + folder + "/dm/name")
|
|
|
|
|
if name:
|
|
|
|
|
d['holders'].append(name)
|
|
|
|
|
else:
|
|
|
|
|
d['holders'].append(folder)
|
|
|
|
|
|
|
|
|
|
self.facts['devices'][diskname] = d
|
|
|
|
|
|
|
|
|
|