From ba749939b0d8349d21ff8fbd9eafb66b64e03a33 Mon Sep 17 00:00:00 2001 From: Per Johansson Date: Tue, 28 Nov 2023 08:19:07 +0100 Subject: [PATCH] Document why provide_usage_auth returns False for disabled. --- fiaas_deploy_daemon/usage_reporting/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fiaas_deploy_daemon/usage_reporting/__init__.py b/fiaas_deploy_daemon/usage_reporting/__init__.py index 1bbcc0c1..2e44094d 100644 --- a/fiaas_deploy_daemon/usage_reporting/__init__.py +++ b/fiaas_deploy_daemon/usage_reporting/__init__.py @@ -41,4 +41,6 @@ def provide_usage_auth(self, config, secrets): LOG.debug("Usage auth enabled") return DevHoseAuth(key, tenant) LOG.debug("Usage auth disabled") + # Not allowed to return None from provider functions. + # False works well as a replacement. return False