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