miasma-aws 0.3.24 → 0.3.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 156fe688026787b3fb537197d4a39d88666b840920442f8be9d6eb4e9a8b6708
4
- data.tar.gz: 4e46c9280237574c37b1178e17cb65398bd4dd682031cc8698f6ec98293f4fa0
3
+ metadata.gz: 98f6930cbfde30872e6c5f67b1d161dc1953fee5f7a1a1453abca4ccbd5b9591
4
+ data.tar.gz: 2e56c6cdb28d964e7e4a4cbdbb7f9e6cb3ea77da6cce513f9a42782845e97631
5
5
  SHA512:
6
- metadata.gz: c97d6b839d0310e1f4a28c10d7624b479c01245b289a0c224a06e7e6b8afa57a542b40b1d4d163da21e56a61940c660f7bed4fe42dbbbfab4de83e03e1087207
7
- data.tar.gz: 8447055c12cef4ed6847887ed76f3244e7d0e63b7bd0db361168e2e7544fd12de6b2786ccad7ee91c52949558a35717933c8c6df71b4333f29ebb0a593228ef0
6
+ metadata.gz: fd68a3bb5f94165b613e01a63c92d976ff52f6526081743b4e9bbf2b83ac1ff188de92b9c08cedd1a94390557aaae8ce5e62c9ab26ede5c045ee7a34a2a09a3f
7
+ data.tar.gz: 3e8d663efff6dcba2d5a2f4deed92873c10099395013b8e8b44064e507c6fd37aec1c4bb07481913c55a74e49cbfbb7c7cc28ed2fb9230ba8ec6bc53b65283ea
@@ -1,3 +1,6 @@
1
+ # v0.3.26
2
+ * [fix] Re-apply default stack state filtering on listing
3
+
1
4
  # v0.3.24
2
5
  * [enhancement] Add logging output to generic and orchestration
3
6
  * [fix] Attribute access for sts update check
@@ -1,4 +1,4 @@
1
1
  module MiasmaAws
2
2
  # Current library version
3
- VERSION = Gem::Version.new("0.3.24")
3
+ VERSION = Gem::Version.new("0.3.26")
4
4
  end
@@ -359,6 +359,7 @@ module Miasma
359
359
  module ApiCommon
360
360
  def self.included(klass)
361
361
  klass.class_eval do
362
+ include Bogo::Logger::Helpers
362
363
  attribute :aws_profile_name, [FalseClass, String], :default => ENV.fetch("AWS_PROFILE", "default")
363
364
  attribute :aws_sts_token, String
364
365
  attribute :aws_sts_role_arn, String
@@ -5,7 +5,6 @@ module Miasma
5
5
  class Orchestration
6
6
  # AWS Orchestration API
7
7
  class Aws < Orchestration
8
-
9
8
  include Bogo::Logger::Helpers
10
9
  logger_name("aws.orchestration")
11
10
 
@@ -62,14 +61,13 @@ module Miasma
62
61
  def load_stack_data(stack = nil)
63
62
  d_params = Smash.new("Action" => "DescribeStacks")
64
63
  l_params = Smash.new("Action" => "ListStacks")
65
- # TODO: Disable state filtering so we get entire list of defined
66
- # stacks. Allowing filtering would be ideal but need a generic
67
- # way to pass it through. This current filter setup imposes
68
- # list restrictions when new states are added that is less than
69
- # ideal
70
- # STACK_STATES.each_with_index do |state, idx|
71
- # l_params["StackStatusFilter.member.#{idx + 1}"] = state.to_s.upcase
72
- # end
64
+ # TODO: Need to update to allow passing in list of desired
65
+ # states for lookup or to remove state filtering. This
66
+ # used to work with earlier versions with sfn but something
67
+ # has changed breaking the integration.
68
+ STACK_STATES.each_with_index do |state, idx|
69
+ l_params["StackStatusFilter.member.#{idx + 1}"] = state.to_s.upcase
70
+ end
73
71
  if stack
74
72
  logger.debug("loading stack information for `#{stack.id}`")
75
73
  d_params["StackName"] = stack.id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miasma-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.24
4
+ version: 0.3.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-08 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: miasma