From 5764de4b6e6acd57ce106eb3eef4917ea736285e Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Fri, 27 Dec 2024 14:26:53 +0100 Subject: [PATCH 1/2] Fix value from pool for async client --- infrahub_sdk/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrahub_sdk/node.py b/infrahub_sdk/node.py index c0938843..275cc76a 100644 --- a/infrahub_sdk/node.py +++ b/infrahub_sdk/node.py @@ -1341,7 +1341,7 @@ async def _process_mutation_result( continue # Process allocated resource from a pool and update attribute - attr.value = object_response[attr_name] + attr.value = object_response[attr_name]["value"] for rel_name in self._relationships: rel = getattr(self, rel_name) From d5fc53c6e4b2228d64ab5872c29dfb9b17f25373 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Fri, 27 Dec 2024 14:28:01 +0100 Subject: [PATCH 2/2] Add changelog entry --- changelog/66.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/66.fixed.md diff --git a/changelog/66.fixed.md b/changelog/66.fixed.md new file mode 100644 index 00000000..f3fc8527 --- /dev/null +++ b/changelog/66.fixed.md @@ -0,0 +1 @@ +Fix behaviour of attribute value coming from resource pools for async client \ No newline at end of file