Skip to content

Commit e9f9d42

Browse files
committed
Dev: ra: Guess stonith class type when using fence agents
1 parent 6ce8e96 commit e9f9d42

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crmsh/ra.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,10 @@ def disambiguate_ra_type(s):
865865
elif len(l) == 2:
866866
cl, tp = l
867867
else:
868-
cl, tp = "ocf", l[0]
868+
if l[0].startswith("fence_"):
869+
cl, tp = "stonith", l[0]
870+
else:
871+
cl, tp = "ocf", l[0]
869872
pr = pick_provider(ra_providers(tp, cl)) if cl == 'ocf' else ''
870873
return cl, pr, tp
871874

0 commit comments

Comments
 (0)