Fix saving plugin configs
This commit is contained in:
parent
1fe53b4c56
commit
d574f84079
1 changed files with 5 additions and 1 deletions
|
@ -276,7 +276,11 @@ class PluginInstance(DBInstance):
|
|||
def save_config(self, data: RecursiveDict[CommentedMap]) -> None:
|
||||
buf = io.StringIO()
|
||||
yaml.dump(data, buf)
|
||||
self.config_str = buf.getvalue()
|
||||
val = buf.getvalue()
|
||||
if val != self.config_str:
|
||||
self.config_str = val
|
||||
self.log.debug("Creating background task to save updated config")
|
||||
asyncio.create_task(self.update())
|
||||
|
||||
async def start_database(
|
||||
self, upgrade_table: UpgradeTable | None = None, actually_start: bool = True
|
||||
|
|
Loading…
Reference in a new issue