From 2a5fb584e237037233d38ff17fe1da7eec8302ef Mon Sep 17 00:00:00 2001 From: Roberto Alfieri Date: Thu, 20 Feb 2025 14:19:23 +0100 Subject: [PATCH] Shows missing data in `stack_info` module output The generator `stacks` object didn't return all the values (e.g. output and parameters) so `get_stack` is used to populate the dict. Closes-Bug: #2059771 Change-Id: Ie9061e35fc4bf217d76eee96f07e0ed68e44927c Signed-off-by: Roberto Alfieri --- plugins/modules/stack_info.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/modules/stack_info.py b/plugins/modules/stack_info.py index 9c123212..4b924c52 100644 --- a/plugins/modules/stack_info.py +++ b/plugins/modules/stack_info.py @@ -229,8 +229,10 @@ class StackInfoModule(OpenStackModule): if self.params[k] is not None: kwargs[k] = self.params[k] - stacks = [stack.to_dict(computed=False) - for stack in self.conn.orchestration.stacks(**kwargs)] + stacks = [] + for stack in self.conn.orchestration.stacks(**kwargs): + stack_obj = self.conn.orchestration.get_stack(stack.id) + stacks.append(stack_obj.to_dict(computed=False)) self.exit_json(changed=False, stacks=stacks)