1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvmdbusd: Simplify add_no_notify for loop

This commit is contained in:
Tony Asleson 2017-03-09 16:06:00 -06:00
parent 075f8e658c
commit 957e283de8

View File

@ -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: