Skip to content

Commit

Permalink
Fix clear cache secret API func call issue (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
shifucun authored Aug 11, 2021
1 parent 644bf30 commit b8bf513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def clearcacheaction():
secret_client = secretmanager.SecretManagerServiceClient()
secret_name = secret_client.secret_version_path(cfg.SECRET_PROJECT,
'clearcache', '1')
secret_response = secret_client.access_secret_version(secret_name)
secret_response = secret_client.access_secret_version(name=secret_name)
token = secret_response.payload.data.decode('UTF-8')
if user_input == token:
success = cache.clear()
Expand Down

0 comments on commit b8bf513

Please sign in to comment.