From dd2bba82953918df250a9c1501ecafedd0949b98 Mon Sep 17 00:00:00 2001 From: Ralf Langebrake Date: Sun, 17 Mar 2024 17:34:11 +0100 Subject: [PATCH] Update plugins/modules/artisan.py More pythonic Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> --- plugins/modules/artisan.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/modules/artisan.py b/plugins/modules/artisan.py index 07369b8254..84b8f90ac1 100644 --- a/plugins/modules/artisan.py +++ b/plugins/modules/artisan.py @@ -162,11 +162,7 @@ def has_changed(message): 'No changes' ] - for info in artisan_messages: - if info in message: - return False - - return True + return all(info not in message for info in artisan_messages) def get_help(module, command):