ruby-changes:57549
From: Alexander <ko1@a...>
Date: Thu, 5 Sep 2019 19:20:04 +0900 (JST)
Subject: [ruby-changes:57549] 0b9b0774c3 (master): [rubygems/rubygems] Minor fix
https://git.ruby-lang.org/ruby.git/commit/?id=0b9b0774c3 From 0b9b0774c3dc0c4113335a57717bbc9d3d9595e8 Mon Sep 17 00:00:00 2001 From: Alexander Pakulov <apakulov@s...> Date: Mon, 2 Sep 2019 11:36:08 -0700 Subject: [rubygems/rubygems] Minor fix https://github.com/rubygems/rubygems/commit/95c1f4e179 diff --git a/lib/rubygems/s3_uri_signer.rb b/lib/rubygems/s3_uri_signer.rb index ff9dde3..534b867 100644 --- a/lib/rubygems/s3_uri_signer.rb +++ b/lib/rubygems/s3_uri_signer.rb @@ -152,7 +152,7 @@ class Gem::S3URISigner https://github.com/ruby/ruby/blob/trunk/lib/rubygems/s3_uri_signer.rb#L152 iam_info = ec2_metadata_request(EC2_IAM_INFO) # Expected format: arn:aws:iam::<id>:instance-profile/<role_name> - role_name = iam_info['InstanceProfileArn'].split('/')[1] + role_name = iam_info['InstanceProfileArn'].split('/').last ec2_metadata_request(EC2_IAM_SECURITY_CREDENTIALS + role_name) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/