From 345e13da3d93c3d422369a7121799b65205fd76a Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Wed, 25 Jul 2018 01:47:28 +0000 Subject: [PATCH] set userProject from static default in FileSystemProvider --- .../contrib/nio/CloudStorageFileSystemProvider.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java index b28e833763c7..26dc440480a4 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java @@ -172,7 +172,12 @@ public static void setDefaultCloudStorageConfiguration(@Nullable CloudStorageCon * @see CloudStorageFileSystem#forBucket(String) */ public CloudStorageFileSystemProvider() { - this("", futureStorageOptions); + this( + CloudStorageFileSystem + .getDefaultCloudStorageConfiguration() + .userProject(), + futureStorageOptions + ); } /**