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