Skip to content

Commit

Permalink
Merge pull request #217 from fiaas/devhoseauth-none
Browse files Browse the repository at this point in the history
Document why provide_usage_auth returns False for disabled.
  • Loading branch information
perj authored Nov 28, 2023
2 parents 700b19b + ba74993 commit 7d5bcf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fiaas_deploy_daemon/usage_reporting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7d5bcf5

Please sign in to comment.