disk-deactivate: support all raid types

This commit is contained in:
lassulus 2023-09-12 10:36:12 +02:00 committed by mergify[bot]
parent 7036bb8b30
commit 7304727801

View File

@ -43,7 +43,7 @@ def deactivate:
[
"lvremove -fy \($vgname)/\($lvname)"
]
elif .type == "raid1" then
elif (.type | contains("raid")) then
[
"mdadm --stop \(.name)"
]