Skip to content

Commit

Permalink
Fix gcp_compute_route module when there are warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nkakouros authored Aug 8, 2024
1 parent d2aaad7 commit c946cee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/modules/gcp_compute_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,10 @@ def main():
fetch = {}

fetch.update({'changed': changed})


if "warnings" in fetch:
fetch["warnings"] = fetch["warnings"][0]["message"]

module.exit_json(**fetch)


Expand Down

0 comments on commit c946cee

Please sign in to comment.