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:
parent
075f8e658c
commit
957e283de8
@ -514,8 +514,8 @@ def add_no_notify(cmdline):
|
|||||||
return cmdline
|
return cmdline
|
||||||
|
|
||||||
if '--config' in cmdline:
|
if '--config' in cmdline:
|
||||||
for i in range(0, len(cmdline)):
|
for i, arg in enumerate(cmdline):
|
||||||
if cmdline[i] == '--config':
|
if arg == '--config':
|
||||||
cmdline[i] += "global/notify_dbus=0"
|
cmdline[i] += "global/notify_dbus=0"
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user