Fix Config.unset() making the name known

This commit is contained in:
Gilles Peskine 2019-08-01 23:13:23 +02:00
parent 208e4ec5d3
commit 55cc4dbb5c

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):