]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager: fixed error message for 'max-workers' change denial docs-develop-sepa-lghkrh/deployments/4453
authorAleš Mrázek <ales.mrazek@nic.cz>
Thu, 27 Jun 2024 13:23:02 +0000 (15:23 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Tue, 2 Jul 2024 12:07:48 +0000 (14:07 +0200)
manager/knot_resolver_manager/kres_manager.py

index ab8c0702223fd72352e86ab4ec47b1a6ef64473a..b22570ed50726fc40c7e03db2caa11c9be860068 100644 (file)
@@ -58,7 +58,9 @@ class _FixCounter:
 
 async def _deny_max_worker_changes(config_old: KresConfig, config_new: KresConfig) -> Result[None, str]:
     if config_old.max_workers != config_new.max_workers:
-        return Result.err("Changing manager's `rundir` during runtime is not allowed.")
+        return Result.err(
+            "Changing 'max-workers', the maximum number of workers allowed to run, is not allowed at runtime."
+        )
 
     return Result.ok(None)