bundles/smartd: ignore partitions in smartd check
This commit is contained in:
parent
d0825a51ee
commit
bbfa985e1d
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
from re import search
|
||||
|
||||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
|
@ -53,6 +55,9 @@ def zfs_disks_to_metadata(metadata):
|
|||
continue
|
||||
|
||||
for disk in option['devices']:
|
||||
if search(r'p([0-9]+)$', disk):
|
||||
continue
|
||||
|
||||
disks.add(disk)
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue