mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
fix int options idempotence bug and add new test to check it (#5443)
This commit is contained in:
parent
f84a9bf932
commit
dc66aefa40
3 changed files with 186 additions and 1 deletions
|
@ -2135,7 +2135,8 @@ class Nmcli(object):
|
|||
elif all([key == self.mtu_setting, self.type == 'dummy', current_value is None, value == 'auto', self.mtu is None]):
|
||||
value = None
|
||||
else:
|
||||
if current_value != to_text(value):
|
||||
value = to_text(value)
|
||||
if current_value != value:
|
||||
changed = True
|
||||
|
||||
diff_before[key] = current_value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue