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 = {
|
defaults = {
|
||||||
'apt': {
|
'apt': {
|
||||||
'packages': {
|
'packages': {
|
||||||
|
@ -53,6 +55,9 @@ def zfs_disks_to_metadata(metadata):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for disk in option['devices']:
|
for disk in option['devices']:
|
||||||
|
if search(r'p([0-9]+)$', disk):
|
||||||
|
continue
|
||||||
|
|
||||||
disks.add(disk)
|
disks.add(disk)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue