Mercurial > libervia-pubsub
diff sat_pubsub/pgsql_storage.py @ 472:d993e8b0fd60
psql: return Deferred is not options field is specified in `setConfiguration`:
fix 391
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 21 Oct 2021 18:12:16 +0200 |
parents | d86e0f8a1405 |
children | b544109ab4c4 |
line wrap: on
line diff
--- a/sat_pubsub/pgsql_storage.py Thu Oct 21 17:31:01 2021 +0200 +++ b/sat_pubsub/pgsql_storage.py Thu Oct 21 18:12:16 2021 +0200 @@ -598,7 +598,7 @@ del options.fields[option] if not options.fields: - return + return defer.succeed(None) if options.get(const.OPT_MAX_ITEMS) == "max": # XXX: "max" is default value for config we must convert