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: