From cbf843e1db43ec5a3e62d2281e4191368c6d61a4 Mon Sep 17 00:00:00 2001 From: kewl fft Date: Sat, 8 Jul 2023 18:56:02 +0100 Subject: [PATCH] Replaced the changed_iter = changed_iter or ... statement with the changed_iter |= ... compound assignment operator for brevity --- plugins/modules/aur.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/aur.py b/plugins/modules/aur.py index cf1a8fb..87cc0ae 100644 --- a/plugins/modules/aur.py +++ b/plugins/modules/aur.py @@ -273,7 +273,7 @@ def install_packages(module, packages, use, extra_args, state, skip_pgp_check, i command.append(package) rc, out, err = module.run_command(command, check_rc=True) - changed_iter = changed_iter or not (out == '' or 'up-to-date -- skipping' in out or 'nothing to do' in out.lower()) + changed_iter |= not (out == '' or 'up-to-date -- skipping' in out or 'nothing to do' in out.lower()) message = 'installed package(s)' if changed_iter else 'package(s) already installed'