uc3-sam-sceptre 0.0.15 → 0.0.17

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: c82785ea3fa0317aa56161de1b9461fcdd304103fc497856038bdce3571ada86
4
- data.tar.gz: 7b9a53091b21d3e6d5c2a2e7da9a338ec7173bcf4348062cd2fbfe1ea4eceee0
3
+ metadata.gz: ba82702479f11d5e218e75984a784946e446af498ea872364300e7c777040f3f
4
+ data.tar.gz: 4b537eaeb29b929c26997aa6fea0ff86e8ce8afb7b9b366a5cba8634be2fa6eb
5
5
  SHA512:
6
- metadata.gz: 5cdc3630c9c1303719ddc1d8a4a9e4a0022e4c48b8c9c74676ed02ebc8179a3db9e3953e5702615fc592a661fde090ee20008286d6e9c013116abfa7e4b2d7d9
7
- data.tar.gz: 5811a96fbabe7b44ee3a9edb1e0bbe2e2feaf53ab373eda28cf60f654632b689c14e1351103488bad18d819be283b6029d62ab5d097014530875d8eaef5e46ff
6
+ metadata.gz: 7d558ee629b83e8dca6a7ee00c01f59d2ceebeb830cb861814a7dad17dc25d752f3d58e8f55d9541ff254a6607e58a7ec49b1e01f741f08a54976c99b6d4123e
7
+ data.tar.gz: '09ef75d2373257781780f0589c7e19e5dc1f3ba1e385b8c466c257259b1ce4a11ed866ccb816085461384ed5edc861926c94149b074ea0853f63d3c14a76ed10'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3SamSceptre
4
- VERSION = '0.0.15'
4
+ VERSION = '0.0.17'
5
5
  end
@@ -140,13 +140,21 @@ puts args
140
140
  # Fetch a CloudFormation stack export
141
141
  def _fetch_stack_export(name:)
142
142
  key = name.to_s.downcase.strip
143
- exp = @stack_exports.select { |exp| exp[:exporting_stack_id].include?(@prefix) && exp[:name].downcase.strip == key }.first
143
+
144
+ puts @stack_exports
145
+
146
+ puts "Looking for: #{name}, stack prefix: #{@prefix}"
147
+
148
+ exp = @stack_exports.select do |hash|
149
+ hash[:exporting_stack_id].include?(@prefix) && hash[:name].downcase.strip == key
150
+ end
144
151
 
145
152
  puts exp
146
153
  puts exp.class.name
147
154
  puts exp.first
155
+ puts exp.first.class.name
148
156
 
149
- exp.first[:value]
157
+ exp.nil? ? nil : exp.first[:value]
150
158
  end
151
159
  end
152
160
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-sam-sceptre
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-04 00:00:00.000000000 Z
11
+ date: 2023-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-cloudformation