mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
fixes an issue with banner_text breaking idempotency (#54548)
This commit is contained in:
parent
349a0dccee
commit
15adc2f276
1 changed files with 9 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue