Skip to content

Commit

Permalink
[ignore] improved isGuiMessageText implementation in aci_system_banner
Browse files Browse the repository at this point in the history
  • Loading branch information
wiebecoding authored and lhercot committed Aug 22, 2024
1 parent 3cd63e6 commit 21a6ebe
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/modules/aci_system_banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 21a6ebe

Please sign in to comment.