mccloud 0.0.24 → 0.0.25

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
  SHA1:
3
- metadata.gz: 3c6517d800261185b44916b4ce87b82e1473edfb
4
- data.tar.gz: 19f142b6ab99c7d7f3642b02d190f312b9ac4ca1
3
+ metadata.gz: 81a8e6bfe4a6b5685bf1e2705bc43e8ed3f5dc36
4
+ data.tar.gz: 630240773dc9bbd38b3054a5360db72f611eb8e9
5
5
  SHA512:
6
- metadata.gz: c148c5ddbf827c515165422ae3118d44cc9cdd515c9b266c9218a3ff16d12b0043e54ac9c0c9f9f3aab1faccd430bbc1c4b39f867ff02c491289b997c3026066
7
- data.tar.gz: e1051308a49abbd9d453face8751746523f980f9d7998a948f1687dbbc37a20810639e5a9b76ab8501ae043e9d98ecc305678e3934469fa2da10ad62b5db8e2e
6
+ metadata.gz: d0945e13e0444dad25db1f93cb26edab17e86fea95a486e214ee9fed77cfe99a5acedef832319275f4bf11d0c2af524f1a5341e60c0515bed0b20c9cb75c5402
7
+ data.tar.gz: 39353aa2a5e511dc3e7641c0204a0ad3eeb808f748a1387fad2c5c50b2c2c6b041002ef8d594a15637f450a698a268257c794e6f81acc2684a08070740803c5a
@@ -218,11 +218,16 @@ module Mccloud
218
218
  filter = self.filter
219
219
 
220
220
  self.raw.servers.each do |s|
221
- name = s.tags["Name"].sub(/^#{filter}/,'')
222
- hostentries = Hash.new
223
- hostentries[name]=s.public_ip_address
224
- hostentries[name]=s.private_ip_address
221
+ name_tag = s.tags["Name"]
222
+ if name_tag.start_with?(filter)
223
+ servername = name_tag.sub(/^#{filter}/,'')
224
+ h = Hash.new
225
+ h['public_ip_address']=s.public_ip_address
226
+ h['private_ip_address']=s.private_ip_address
227
+ hostentries[servername] = h
228
+ end
225
229
  end
230
+
226
231
  return hostentries
227
232
  end
228
233
 
@@ -2,5 +2,5 @@ module Mccloud
2
2
  end
3
3
 
4
4
  unless defined?(Mccloud::VERSION)
5
- ::Mccloud::VERSION = "0.0.24"
5
+ ::Mccloud::VERSION = "0.0.25"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mccloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Debois