Skip to content

Commit 479ca16

Browse files
authored
Fix value from pool for async client (#184)
1 parent fc61aff commit 479ca16

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/66.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix behaviour of attribute value coming from resource pools for async client

infrahub_sdk/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ async def _process_mutation_result(
13411341
continue
13421342

13431343
# Process allocated resource from a pool and update attribute
1344-
attr.value = object_response[attr_name]
1344+
attr.value = object_response[attr_name]["value"]
13451345

13461346
for rel_name in self._relationships:
13471347
rel = getattr(self, rel_name)

0 commit comments

Comments
 (0)