Skip to content

Commit

Permalink
Document why provide_usage_auth returns False for disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
perj committed Nov 28, 2023
1 parent 700b19b commit ba74993
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 ba74993

Please sign in to comment.