lib/miasma/contrib/aws/orchestration.rb in miasma-aws-0.3.26 vs lib/miasma/contrib/aws/orchestration.rb in miasma-aws-0.3.28

- old
+ new

@@ -50,10 +50,14 @@ ), "AWS::CloudFormation::Stack" => Smash.new( :api => :orchestration, :collection => :stacks, ), + "AWS::S3::Bucket" => Smash.new( + :api => :storage, + :collection => :buckets, + ), ).to_smash(:freeze) # Fetch stacks or update provided stack data # # @param stack [Models::Orchestration::Stack] @@ -657,10 +661,10 @@ :resource_name => event["LogicalResourceId"], :resource_logical_id => event["LogicalResourceId"], :resource_state => event["ResourceStatus"].downcase.to_sym, :resource_status => event["ResourceStatus"], :resource_status_reason => event["ResourceStatusReason"], - :time => Time.parse(event["Timestamp"]), + :time => Time.parse(event["Timestamp"]).localtime, ).valid_state end if evt_id idx = events.index { |d| d.id == evt_id } idx ? events.slice(0, idx) : events