Blame SOURCES/bz1998454-01-fix-creating-resources-with-depth-operation-attribut.patch

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