diff sat_pubsub/backend.py @ 484:70eddf92bf51

backend: fix check of boolean settings with `publish-options`
author Goffi <goffi@goffi.org>
date Fri, 23 Sep 2022 18:06:12 +0200
parents 0e801ae1869f
children cab491b1b563
line wrap: on
line diff
--- a/sat_pubsub/backend.py	Fri Sep 23 18:04:50 2022 +0200
+++ b/sat_pubsub/backend.py	Fri Sep 23 18:06:12 2022 +0200
@@ -447,7 +447,7 @@
         # we check that publish-options are satisfied
         for field, value in options.items():
             try:
-               current_value = configuration[field]
+               current_value = str(configuration[field]).lower()
             except KeyError:
                 raise error.ConstraintFailed(
                     f"publish-options {field!r} doesn't exist in node configuration"