From aedcf9fed7a1d335bf4c4fe5db81238647062e2d Mon Sep 17 00:00:00 2001 From: Susant Sahani <145210+ssahani@users.noreply.github.com> Date: Thu, 27 Sep 2018 22:46:19 +0530 Subject: [PATCH] nmcli: set hairpin to str to bool (#45908) Fix: nmcli module always sets hairpin mode to 1 for bridge slaves. Closes #42569 Signed-off-by: Susant Sahani --- lib/ansible/modules/net_tools/nmcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/net_tools/nmcli.py b/lib/ansible/modules/net_tools/nmcli.py index 90a989b050c..d828e1b6873 100644 --- a/lib/ansible/modules/net_tools/nmcli.py +++ b/lib/ansible/modules/net_tools/nmcli.py @@ -1195,7 +1195,7 @@ def main(): hellotime=dict(required=False, default="2", type='str'), maxage=dict(required=False, default="20", type='str'), ageingtime=dict(required=False, default="300", type='str'), - hairpin=dict(required=False, default=True, type='str'), + hairpin=dict(required=False, default=True, type='bool'), path_cost=dict(required=False, default="100", type='str'), # vlan specific vars vlanid=dict(required=False, default=None, type='str'),