Fix bug with unsetting keys
This commit is contained in:
parent
1145541155
commit
ab7ac6bade
|
@ -671,9 +671,10 @@ class Helper(object):
|
||||||
toUnset = True
|
toUnset = True
|
||||||
|
|
||||||
if spl[2] == "authtype":
|
if spl[2] == "authtype":
|
||||||
if not spl[3] in ["sp", "ns"]:
|
if not toUnset:
|
||||||
failure("Authtype must be sp or ns, not %s" % spl[3])
|
if not spl[3] in ["sp", "ns"]:
|
||||||
return
|
failure("Authtype must be sp or ns, not %s" % spl[3])
|
||||||
|
return
|
||||||
if spl[2] == "enabled":
|
if spl[2] == "enabled":
|
||||||
failure("Use the enable and disable commands to manage this")
|
failure("Use the enable and disable commands to manage this")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue