specinfra-ec2_metadata-tags 0.0.1 → 0.0.2

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: 538d93563016bd7aedded49a66d4f461efdacbb2
4
- data.tar.gz: f74e362cbbc3a97f2b141e7f230285b43b25e24a
3
+ metadata.gz: 025a310f1465b602ceaab1bab950b3854458d978
4
+ data.tar.gz: af2548369408fe3f44af70e96da81e37345e847c
5
5
  SHA512:
6
- metadata.gz: 29fb93d69b703dc1f5f3b8712821014f0cfbb68cd3fdf9b4713025b1ed974c2c13f5578675b4eff15df2b2faa330ed21c772a8f656a42dac421668ee05f2c86e
7
- data.tar.gz: 99d8b04fff71be502c9a41911a7eabee438c3a472d259d5bf13888e4aafeafe50aa2cdcb1ee9f63b2a0c24f5cc892ca10cba0098e518efef8213261fe7763764
6
+ metadata.gz: 08731c3c53a980095c0086399530cbacdaa67fad188a076810d847107be8435a0a723d6d5508e5e747a5efd0dcebec8dcf2d9bd60b423ea7d036d5266ce696e4
7
+ data.tar.gz: 5c6691de3ba72e9660d1d93df6bd767e90657b14d6e7d75fa4634e57c1066b565a923793e38a414f2bd309e36ce10e593fbf0ffe140d81c8e6191b8197edebc8
@@ -1,7 +1,7 @@
1
1
  module Specinfra
2
2
  class Ec2Metadata
3
3
  class Tags
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -5,7 +5,9 @@ module Specinfra
5
5
  class Ec2Metadata
6
6
  class Tags
7
7
  def self.get
8
- ec2 = Aws::EC2::Client.new
8
+ region = host_inventory['ec2']['placement']['availability-zone']
9
+ region.gsub!(/[a-z]$/, '')
10
+ ec2 = Aws::EC2::Client.new(:region => region)
9
11
  page = ec2.describe_tags(
10
12
  :filters => [{
11
13
  :name => 'resource-id',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra-ec2_metadata-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-09 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk