cap-gce 1.1.1 → 1.1.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: 88e63844a2c34b9af653090013440de8d55c2124
4
- data.tar.gz: 283e0bba1985f7f8ea2ee103602722d961d9c529
3
+ metadata.gz: 7e23dcdc3993ab23fa904ee4af84cf2275f67550
4
+ data.tar.gz: aa5f6a1718c4f7dbce430ecd4fbb64055a95e691
5
5
  SHA512:
6
- metadata.gz: 724aae1655c9c4c4521457fe4a0f1bc70d2094f3dccfa29e142651abbc14b689074728d7c535cf4bf8b54e6d0e31194a3121db2b5342760883d3ea2ca5748cc8
7
- data.tar.gz: c0dc16e2c8152de58c8a20aeabac53f27b2750ae61ea5fa2d7f19765e9ae99916bdd667fa27753e408fa19c20a805eefaca772ae6b8ccbf154ccb4f88d9f3d29
6
+ metadata.gz: 97d240a20ec6509d03727f6a3e14ed6bda52d74e8ce36c026b7802fac18fc964e3c1d428b23ed7680b1510be5e776cf9d788c7e32b75150ef06a01213818f4fb
7
+ data.tar.gz: 0d923e92c1d0cf6aee403674aa2dfd1ac89450cbb19fa2c4d3d53baca51a4daa8a8576777c25d956980f891e074c85d4cee39e10bb19fae0b22e7ce51eb2726f
data/lib/cap-gce/utils.rb CHANGED
@@ -20,6 +20,7 @@ module CapGCE
20
20
  end
21
21
 
22
22
  def tag_value(instance, key)
23
+ return nil unless instance.metadata.items
23
24
  find = instance.metadata.items.detect { |t| t.key == key.to_s }
24
25
  return nil unless find
25
26
  find.value
@@ -1,3 +1,3 @@
1
1
  module CapGCE
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-gce
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Lin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-24 00:00:00.000000000 Z
11
+ date: 2017-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client