Fix Config.unset() making the name known

This commit is contained in:
Gilles Peskine 2019-08-01 23:13:23 +02:00 committed by Darryl Green
parent 812f185bc8
commit b6fa7970a6

View File

@ -131,9 +131,10 @@ class Config:
def unset(self, name):
"""Make name unset (inactive).
name remains known.
name remains known if it was known before.
"""
self.set(name)
if name not in self.settings:
return
self.settings[name].active = False
def adapt(self, adapter):