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
|
||||
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user