Skip to content

Commit ca9d1b8

Browse files
author
Peter Benjamin
committed
Return cloudformation client and credentials when authenticating directly to target account
1 parent b6c4417 commit ca9d1b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/lib/auth.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def self.control_plane_auth(ctrl, target, username, region)
8282

8383
def self.target_plane_auth(region, profile_name)
8484
Aws.config[:credentials] = Aws::SharedCredentials.new(profile_name: profile_name)
85-
return Aws::CloudFormation::Client.new(region: region), nil
85+
return Aws::CloudFormation::Client.new(region: region), Aws.config[:credentials].credentials
8686
end
8787

8888
def self.valid_session?(region, creds)

0 commit comments

Comments
 (0)