mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmdbusd: Fix notify_dbus mangling config option
If config option is passed by caller, dbusd appends to the option not to the value, and also without using delimiter. Bug: RHBZ#1451612
This commit is contained in:
parent
9291fb7bf5
commit
16c6d9f11a
@ -519,7 +519,9 @@ def add_no_notify(cmdline):
|
||||
if '--config' in cmdline:
|
||||
for i, arg in enumerate(cmdline):
|
||||
if arg == '--config':
|
||||
cmdline[i] += "global/notify_dbus=0"
|
||||
if len(cmdline) <= i+1:
|
||||
raise dbus.exceptions.DBusException("Missing value for --config option.")
|
||||
cmdline[i+1] += " global/notify_dbus=0"
|
||||
break
|
||||
else:
|
||||
cmdline.extend(['--config', 'global/notify_dbus=0'])
|
||||
|
Loading…
Reference in New Issue
Block a user