Remove "-" from setting name before getting its value
This commit is contained in:
parent
444f37c3da
commit
56dcc2306b
1 changed files with 6 additions and 1 deletions
|
@ -232,9 +232,14 @@ class Module(ModuleManager.BaseModule):
|
|||
else:
|
||||
raise ConfigInvalidValue()
|
||||
else:
|
||||
unset = False
|
||||
if setting.startswith("-"):
|
||||
setting = setting[1:]
|
||||
unset = True
|
||||
|
||||
existing_value = target.get_setting(setting, None)
|
||||
if not existing_value == None:
|
||||
if setting.startswith("-"):
|
||||
if unset:
|
||||
setting = setting[1:]
|
||||
target.del_setting(setting)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue