diff --git a/download_from_google_storage.py b/download_from_google_storage.py index b1891755d..45e299c0b 100755 --- a/download_from_google_storage.py +++ b/download_from_google_storage.py @@ -81,9 +81,8 @@ def check_bucket_permissions(bucket, gsutil): code, _, ls_err = gsutil.check_call('ls', base_url) if code == 403: - code, _, _ = gsutil.call('config') - if code != 0: - print >> sys.stderr, 'Error while authenticating to %s.' % base_url + print >> sys.stderr, 'Got error 403 while authenticating to %s.' % base_url + print >> sys.stderr, 'Try running "gsutil config".' elif code == 404: print >> sys.stderr, '%s not found.' % base_url elif code != 0: diff --git a/tests/download_from_google_storage_unittests.py b/tests/download_from_google_storage_unittests.py index abf12d991..5e5779374 100755 --- a/tests/download_from_google_storage_unittests.py +++ b/tests/download_from_google_storage_unittests.py @@ -82,7 +82,7 @@ class GstoolsUnitTests(unittest.TestCase): self.assertEqual(err_lines[0], 'gsutil version 3.25') self.assertEqual( err_lines[1], - 'checksum ce71ac982f1148315e7fa65cff2f83e8 (OK)') + 'checksum 010822c61d38d70ac23600bc955fccf5 (OK)') def test_get_sha1(self): lorem_ipsum = os.path.join(self.base_path, 'lorem_ipsum.txt')