From 957e283de8298e2bb83517dbf8b724bc733cbbd9 Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Thu, 9 Mar 2017 16:06:00 -0600 Subject: [PATCH] lvmdbusd: Simplify add_no_notify for loop --- daemons/lvmdbusd/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemons/lvmdbusd/utils.py b/daemons/lvmdbusd/utils.py index 42dd7e5b2..2e7b808d9 100644 --- a/daemons/lvmdbusd/utils.py +++ b/daemons/lvmdbusd/utils.py @@ -514,8 +514,8 @@ def add_no_notify(cmdline): return cmdline if '--config' in cmdline: - for i in range(0, len(cmdline)): - if cmdline[i] == '--config': + for i, arg in enumerate(cmdline): + if arg == '--config': cmdline[i] += "global/notify_dbus=0" break else: