Blame SOURCES/bz2032473-01-fix-enabling-corosync-qdevice.patch
|
|
b75106 |
From 798d054db1a20b7cd2f2aed2b35b9e51835dec55 Mon Sep 17 00:00:00 2001
|
|
|
b75106 |
From: Tomas Jelinek <tojeline@redhat.com>
|
|
|
b75106 |
Date: Mon, 6 Dec 2021 16:06:31 +0100
|
|
|
b75106 |
Subject: [PATCH 1/3] fix enabling corosync-qdevice
|
|
|
b75106 |
|
|
|
b75106 |
---
|
|
|
b75106 |
pcsd/remote.rb | 2 +-
|
|
|
b75106 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
b75106 |
|
|
|
b75106 |
diff --git a/pcsd/remote.rb b/pcsd/remote.rb
|
|
|
b75106 |
index b569e249..e1923d6f 100644
|
|
|
b75106 |
--- a/pcsd/remote.rb
|
|
|
b75106 |
+++ b/pcsd/remote.rb
|
|
|
b75106 |
@@ -2002,7 +2002,7 @@ def qdevice_client_enable(param, request, auth_user)
|
|
|
b75106 |
unless allowed_for_local_cluster(auth_user, Permissions::WRITE)
|
|
|
b75106 |
return 403, 'Permission denied'
|
|
|
b75106 |
end
|
|
|
b75106 |
- if not ServiceChecker.new('corosync', enabled: true).is_enabled?('corosync')
|
|
|
b75106 |
+ if not ServiceChecker.new(['corosync'], enabled: true).is_enabled?('corosync')
|
|
|
b75106 |
return pcsd_success('corosync is not enabled, skipping')
|
|
|
b75106 |
elsif enable_service('corosync-qdevice')
|
|
|
b75106 |
return pcsd_success('corosync-qdevice enabled')
|
|
|
b75106 |
--
|
|
|
b75106 |
2.31.1
|
|
|
b75106 |
|