lib/fog/aws/iam.rb in fog-1.16.0 vs lib/fog/aws/iam.rb in fog-1.17.0
- old
+ new
@@ -86,10 +86,14 @@
def self.data
@data ||= Hash.new do |hash, key|
hash[key] = {
:owner_id => Fog::AWS::Mock.owner_id,
:server_certificates => {},
+ :access_keys => [{
+ "Status" => "Active",
+ "AccessKeyId" => key
+ }],
:users => Hash.new do |uhash, ukey|
uhash[ukey] = {
:user_id => Fog::AWS::Mock.key_id,
:path => '/',
:arn => "arn:aws:iam::#{Fog::AWS::Mock.owner_id}:user/#{ukey}",
@@ -203,10 +207,9 @@
@connection.request({
:body => body,
:expects => 200,
:idempotent => idempotent,
:headers => { 'Content-Type' => 'application/x-www-form-urlencoded' },
- :host => @host,
:method => 'POST',
:parser => parser
})
rescue Excon::Errors::HTTPStatusError => error
match = Fog::AWS::Errors.match_error(error)