From 94609050ddb1eb0f712c0d34088d55d0afe2db02 Mon Sep 17 00:00:00 2001 From: seanBE Date: Wed, 5 Jul 2017 12:24:38 +0100 Subject: [PATCH] update doc reference for setting up a service account --- core/google/cloud/credentials.py | 3 ++- storage/google/cloud/storage/bucket.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/google/cloud/credentials.py b/core/google/cloud/credentials.py index 52cba9b22fcc..6a1bf512f7a9 100644 --- a/core/google/cloud/credentials.py +++ b/core/google/cloud/credentials.py @@ -61,7 +61,8 @@ def _get_signed_query_params(credentials, expiration, string_to_sign): """ if not isinstance(credentials, google.auth.credentials.Signing): auth_uri = ('http://google-cloud-python.readthedocs.io/en/latest/' - 'google-cloud-auth.html#setting-up-a-service-account') + 'core/auth.html?highlight=authentication#setting-up-' + 'a-service-account') raise AttributeError('you need a private key to sign credentials.' 'the credentials you are currently using %s ' 'just contains a token. see %s for more ' diff --git a/storage/google/cloud/storage/bucket.py b/storage/google/cloud/storage/bucket.py index 865a23840af4..895a6e38473f 100644 --- a/storage/google/cloud/storage/bucket.py +++ b/storage/google/cloud/storage/bucket.py @@ -1016,7 +1016,8 @@ def generate_upload_policy( if not isinstance(credentials, google.auth.credentials.Signing): auth_uri = ('http://google-cloud-python.readthedocs.io/en/latest/' - 'google-cloud-auth.html#setting-up-a-service-account') + 'core/auth.html?highlight=authentication#setting-up-' + 'a-service-account') raise AttributeError( 'you need a private key to sign credentials.' 'the credentials you are currently using %s '