Skip to content

Commit

Permalink
fix for 'find_single_link' keyerror
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Aug 19, 2024
1 parent 8c9a2b2 commit 5713513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/base/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def find_single_link(

return False

if set_field in self.i.r['diff']['before']:
if 'before' in self.i.r['diff'] and set_field in self.i.r['diff']['before']:
self.i.r['diff']['before'][set_field] = entry

return True
Expand Down

0 comments on commit 5713513

Please sign in to comment.