From 57ec520ebe58cc2775e2fe7ca25a3e4226f6ef5d Mon Sep 17 00:00:00 2001 From: Shreyas Date: Wed, 4 Oct 2023 19:32:11 -0400 Subject: [PATCH] [minor_change] Changed the logic for unpacking of two dictionaries and combining them in 'aci_config_rollback' module to support Python 2.6 and above --- plugins/modules/aci_config_rollback.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/modules/aci_config_rollback.py b/plugins/modules/aci_config_rollback.py index d6e47271b..e8a893db3 100644 --- a/plugins/modules/aci_config_rollback.py +++ b/plugins/modules/aci_config_rollback.py @@ -284,7 +284,9 @@ def main(): elif state == "preview": aci.path = "mqapi2/snapshots.diff.xml" - preview_params = {k: v for d in [{"path": aci.path}, module.params] for k, v in d.items()} + preview_path = {"path": aci.path} + preview_params = dict(preview_path.items()) + preview_params.update(module.params.items()) if aci.params.get("port") is not None: aci.url = "{protocol}://{host}:{port}/{path}".format_map(preview_params) else: