Blame SOURCES/bz1998454-01-fix-creating-resources-with-depth-operation-attribut.patch
|
|
ce1222 |
From 189c73e31f5033413fc4483e40d0bfc78d77f962 Mon Sep 17 00:00:00 2001
|
|
|
ce1222 |
From: Tomas Jelinek <tojeline@redhat.com>
|
|
|
ce1222 |
Date: Fri, 27 Aug 2021 12:05:18 +0200
|
|
|
ce1222 |
Subject: [PATCH 1/2] fix creating resources with depth operation attribute
|
|
|
ce1222 |
|
|
|
ce1222 |
---
|
|
|
ce1222 |
CHANGELOG.md | 9 +++++++++
|
|
|
ce1222 |
pcs/lib/cib/resource/operations.py | 2 +-
|
|
|
ce1222 |
2 files changed, 10 insertions(+), 1 deletion(-)
|
|
|
ce1222 |
|
|
|
ce1222 |
diff --git a/CHANGELOG.md b/CHANGELOG.md
|
|
|
ce1222 |
index f768cc36..c15546ba 100644
|
|
|
ce1222 |
--- a/CHANGELOG.md
|
|
|
ce1222 |
+++ b/CHANGELOG.md
|
|
|
ce1222 |
@@ -1,5 +1,14 @@
|
|
|
ce1222 |
# Change Log
|
|
|
ce1222 |
|
|
|
ce1222 |
+## [Unreleased]
|
|
|
ce1222 |
+
|
|
|
ce1222 |
+### Fixed
|
|
|
ce1222 |
+- Fixed an error when creating a resource which defines 'depth' attribute for
|
|
|
ce1222 |
+ its operations ([rhbz#1998454])
|
|
|
ce1222 |
+
|
|
|
ce1222 |
+[rhbz#1998454]: https://bugzilla.redhat.com/show_bug.cgi?id=1998454
|
|
|
ce1222 |
+
|
|
|
ce1222 |
+
|
|
|
ce1222 |
## [0.10.10] - 2021-08-19
|
|
|
ce1222 |
|
|
|
ce1222 |
### Added
|
|
|
ce1222 |
diff --git a/pcs/lib/cib/resource/operations.py b/pcs/lib/cib/resource/operations.py
|
|
|
ce1222 |
index 390db71a..44b2e7dd 100644
|
|
|
ce1222 |
--- a/pcs/lib/cib/resource/operations.py
|
|
|
ce1222 |
+++ b/pcs/lib/cib/resource/operations.py
|
|
|
ce1222 |
@@ -197,7 +197,7 @@ def _action_dto_to_dict(
|
|
|
ce1222 |
) -> Dict[str, str]:
|
|
|
ce1222 |
result = dict(
|
|
|
ce1222 |
filter(
|
|
|
ce1222 |
- lambda item: item[0] != "deph" and item[1] not in (None, ""),
|
|
|
ce1222 |
+ lambda item: item[0] != "depth" and item[1] not in (None, ""),
|
|
|
ce1222 |
to_dict(dto).items(),
|
|
|
ce1222 |
)
|
|
|
ce1222 |
)
|
|
|
ce1222 |
--
|
|
|
ce1222 |
2.31.1
|
|
|
ce1222 |
|