Skip to content

Commit c078907

Browse files
authored
Dev: Hide lsb and service resource agent class type from UI and doc (#1423)
2 parents 622cca2 + ea4ee5d commit c078907

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

crmsh/ra.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ def ra_classes():
5050
return cache.retrieve("ra_classes")
5151
if can_use_crm_resource():
5252
l = crm_resource("--list-standards")
53+
l = [x for x in l if x not in ("lsb", "service")]
5354
else:
54-
l = ["heartbeat", "lsb", "ocf", "stonith", "systemd"]
55+
l = ["ocf", "stonith", "systemd"]
5556
l.sort()
5657
return cache.store("ra_classes", l)
5758

doc/crm.8.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ clear locate move refresh status up
219219
constraints ls operations restart stop utilization
220220
221221
crm(live)configure# primitive fence-1 <TAB><TAB>
222-
lsb: ocf: service: stonith: systemd:
222+
ocf: stonith: systemd:
223223
224224
crm(live)configure# primitive fence-1 stonith:<TAB><TAB>
225225
apcmaster external/ippower9258 fence_legacy

0 commit comments

Comments
 (0)