From 15adc2f276b47ce569595034e62ccc6bf40a8e64 Mon Sep 17 00:00:00 2001 From: Wojciech Wypior Date: Fri, 29 Mar 2019 17:15:46 +0100 Subject: [PATCH] fixes an issue with banner_text breaking idempotency (#54548) --- lib/ansible/modules/network/f5/bigip_device_sshd.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/ansible/modules/network/f5/bigip_device_sshd.py b/lib/ansible/modules/network/f5/bigip_device_sshd.py index 84e6226204b..1a4a98d860f 100644 --- a/lib/ansible/modules/network/f5/bigip_device_sshd.py +++ b/lib/ansible/modules/network/f5/bigip_device_sshd.py @@ -284,6 +284,15 @@ class Difference(object): if set(self.want.allow) != set(self.have.allow): return self.want.allow + @property + def banner_text(self): + if self.want.banner_text is None: + return None + if self.want.banner_text == '' and self.have.banner_text is None: + return None + if self.want.banner_text != self.have.banner_text: + return self.want.banner_text + class ModuleManager(object): def __init__(self, *args, **kwargs):