From 21a6ebebeee1afe146c8046f4f489fcb679cdb2a Mon Sep 17 00:00:00 2001 From: Brian Wiebe <51461287+wiebecoding@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:11:01 -0700 Subject: [PATCH] [ignore] improved isGuiMessageText implementation in aci_system_banner --- plugins/modules/aci_system_banner.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/modules/aci_system_banner.py b/plugins/modules/aci_system_banner.py index de4992639..8106668a0 100644 --- a/plugins/modules/aci_system_banner.py +++ b/plugins/modules/aci_system_banner.py @@ -269,11 +269,8 @@ def main(): if state == "present": regex_url = "^https?:\\/\\/(?:www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_\\+.~#?&\\/=]*)$" - if gui_banner is not None: - if re.fullmatch(regex_url, gui_banner): - is_gui_message_text = "no" - else: - is_gui_message_text = "yes" + if gui_banner is not None and re.fullmatch(regex_url, gui_banner): + is_gui_message_text = "no" else: is_gui_message_text = "yes"