idlc-sdk-pfm 1.0.10 → 1.0.11

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: 2557465fb327190f4115eeb3552a8835795e25011f87d01447c787f35b5d433e
4
- data.tar.gz: 54f51750e2e43b00e92071d9c8804d8e659b538c14b49328ae34583265b6e44a
3
+ metadata.gz: 602f775e11c0fc20bd2f7b36b445fd3b432d03c7631a8eb51289ca2c5f928e2d
4
+ data.tar.gz: 6aba52457ed4b9d799cb14fc50bb7d2cc54025c5e7f8eab49d74755447cb3971
5
5
  SHA512:
6
- metadata.gz: 4cbae0cf0c7c50c33a23854fd027f35770eb17ea4e97d3380a5b457e8add1d069bb0016b62af28b5c75d5f0b882bf2cc5bbaf216f96616f27578652ec6c68900
7
- data.tar.gz: a78d4d19b527161144692970f10ec535966ba4d3c64de4f57003acfca6f06c7e549c3d83e85a3cd80beb0fe3f95efdcec309414e712467376576fff07c1861be
6
+ metadata.gz: d9729ef3fbb6463f5b4b2c62932e9e3a9bef269272182174166bd20e1234857e9815fe64813c1dfac56bc829da83fd2dfdcbf8b51706f47237de0b44cc6140f7
7
+ data.tar.gz: 41c9308bf77f4f728c07f2402514044568f626f25ccbe3b2202882c08cd0ce24418ebf200e46f9c767feed3843fd10ca7003b47733ce3af6598ac86a001e2660
@@ -171,12 +171,22 @@ module Pfm
171
171
  env_metadata = JSON.parse(open(@config[:config_file]).read)
172
172
  ['account', 'environment', 'ec2', 'application'].each do |section|
173
173
  env_metadata[section].each do |key, value|
174
- if value.nil? value = ''
174
+ # skip dups
175
+ next unless vars_file[key].nil?
176
+
177
+ # replace null with empty string
178
+ value = '' if value.nil?
179
+
180
+ # skip lists and maps
175
181
  next unless (value.instance_of? String)
182
+
183
+ # add to vars file
176
184
  vars_file[key] = <<~EOH
177
185
  variable "#{key}" {}
178
186
 
179
187
  EOH
188
+
189
+ # load value into envrionment
180
190
  Idlc::Deploy::Config.add_deployment_var(key, value)
181
191
  end
182
192
  end
@@ -1,3 +1,3 @@
1
1
  module Pfm
2
- VERSION = '1.0.10'.freeze
2
+ VERSION = '1.0.11'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idlc-sdk-pfm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Cazell