Skip to content

Commit

Permalink
[minor_change] Changed the logic for unpacking of two dictionaries an…
Browse files Browse the repository at this point in the history
…d combining them in 'aci_config_rollback' module to support Python 2.6 and above
  • Loading branch information
shrsr committed Oct 4, 2023
1 parent be1da81 commit 57ec520
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/modules/aci_config_rollback.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 57ec520

Please sign in to comment.