Skip to content

Commit c54327f

Browse files
committed
check for aws cli before writing credentials
1 parent 07c5d5c commit c54327f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/aws/google.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ def refresh
134134

135135
# Write credentials and expiration to AWS credentials file.
136136
def write_credentials
137+
# AWS CLI is needed because writing AWS credentials is not supported by the AWS Ruby SDK.
138+
return unless system('which aws >/dev/null 2>&1')
137139
%w[
138140
access_key_id
139141
secret_access_key

0 commit comments

Comments
 (0)