Blame SOURCES/fix-translating-resource-roles-in-colocation-constra.patch
|
|
b75106 |
From f759872276ed8ff04bbf05010c18bbe4d1abdb11 Mon Sep 17 00:00:00 2001
|
|
|
b75106 |
From: Tomas Jelinek <tojeline@redhat.com>
|
|
|
b75106 |
Date: Tue, 1 Feb 2022 16:10:35 +0100
|
|
|
b75106 |
Subject: [PATCH 2/2] fix translating resource roles in colocation constraints
|
|
|
b75106 |
|
|
|
b75106 |
---
|
|
|
b75106 |
pcs/lib/xml_tools.py | 2 +-
|
|
|
b75106 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
b75106 |
|
|
|
b75106 |
diff --git a/pcs/lib/xml_tools.py b/pcs/lib/xml_tools.py
|
|
|
b75106 |
index 07752f92..6a652fd1 100644
|
|
|
b75106 |
--- a/pcs/lib/xml_tools.py
|
|
|
b75106 |
+++ b/pcs/lib/xml_tools.py
|
|
|
b75106 |
@@ -66,7 +66,7 @@ def export_attributes(
|
|
|
b75106 |
result = {str(key): str(value) for key, value in element.attrib.items()}
|
|
|
b75106 |
if not with_id:
|
|
|
b75106 |
result.pop("id", None)
|
|
|
b75106 |
- for role_name in ("role", "rsc-role"):
|
|
|
b75106 |
+ for role_name in ("role", "rsc-role", "with-rsc-role"):
|
|
|
b75106 |
if role_name in result:
|
|
|
b75106 |
result[role_name] = pacemaker.role.get_value_primary(
|
|
|
b75106 |
const.PcmkRoleType(result[role_name].capitalize())
|
|
|
b75106 |
--
|
|
|
b75106 |
2.34.1
|
|
|
b75106 |
|