# HG changeset patch # User Goffi # Date 1663949172 -7200 # Node ID 70eddf92bf510970c91ebb81706d70c3c6161b2f # Parent e814c98ef07ad8ca92abe1e4023bd03c24e6c5ab backend: fix check of boolean settings with `publish-options` diff -r e814c98ef07a -r 70eddf92bf51 sat_pubsub/backend.py --- 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"