From ea4ee5d9fcac6f86de5322411aa15b5a26c43148 Mon Sep 17 00:00:00 2001 From: xin liang Date: Mon, 20 May 2024 11:05:42 +0800 Subject: [PATCH] Dev: Hide lsb and service resource agent class type from UI and doc (jsc#PED-5577) --- crmsh/ra.py | 3 ++- doc/crm.8.adoc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crmsh/ra.py b/crmsh/ra.py index f6814cafcc..de941ac008 100644 --- a/crmsh/ra.py +++ b/crmsh/ra.py @@ -50,8 +50,9 @@ def ra_classes(): return cache.retrieve("ra_classes") if can_use_crm_resource(): l = crm_resource("--list-standards") + l = [x for x in l if x not in ("lsb", "service")] else: - l = ["heartbeat", "lsb", "ocf", "stonith", "systemd"] + l = ["ocf", "stonith", "systemd"] l.sort() return cache.store("ra_classes", l) diff --git a/doc/crm.8.adoc b/doc/crm.8.adoc index a05fccc172..aa4633e24f 100644 --- a/doc/crm.8.adoc +++ b/doc/crm.8.adoc @@ -219,7 +219,7 @@ clear locate move refresh status up constraints ls operations restart stop utilization crm(live)configure# primitive fence-1 -lsb: ocf: service: stonith: systemd: +ocf: stonith: systemd: crm(live)configure# primitive fence-1 stonith: apcmaster external/ippower9258 fence_legacy