From ee11ed2a1510ac29f8f92b6ac7c15f725f724499 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sun, 13 Feb 2022 20:48:27 -0500 Subject: [PATCH] confighelper: fix the get_hash() method Include the option's values in the hash. Signed-off-by: Eric Callahan --- moonraker/confighelper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moonraker/confighelper.py b/moonraker/confighelper.py index e2170a2..b0bc3fb 100644 --- a/moonraker/confighelper.py +++ b/moonraker/confighelper.py @@ -80,8 +80,9 @@ class ConfigHelper: def get_hash(self) -> hashlib._Hash: hash = hashlib.sha256() - for option in self.config[self.section]: + for option, val in self.config[self.section].items(): hash.update(option.encode()) + hash.update(val.encode()) return hash def get_prefix_sections(self, prefix: str) -> List[str]: