Skip to content

Commit

Permalink
[nat_port_forward] Use parsed interface name for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
opoplawski committed Jul 30, 2023
1 parent 278676d commit dada6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/nat_port_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def _set_associated_rule(self, before=None):
else:
if self.params['associated_rule'] == 'associated':
if before['associated-rule-id'].startswith('nat_'):
if self.params['interface'] != before['interface']:
if self.obj['interface'] != before['interface']:
self._delete_associated_rule(before['associated-rule-id'], before['interface'])
else:
self.obj['associated-rule-id'] = before['associated-rule-id']
Expand Down

0 comments on commit dada6d7

Please sign in to comment.