disk-deactivate: support all raid types

This commit is contained in:
lassulus authored and mergify[bot] committed 2023-09-12 08:41:56 +00:00
1 parent 7036bb8b30
commit 7304727801
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ def deactivate:
[
"lvremove -fy \($vgname)/\($lvname)"
]
elif .type == "raid1" then
elif (.type | contains("raid")) then
[
"mdadm --stop \(.name)"
]