prof 0.31.0 → 0.31.1

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: b3f721a22a15e1e43787f06eca04043967708dbf
4
- data.tar.gz: b103d0f59b6c348a6ca73bd41e1586ae4cacc422
3
+ metadata.gz: fcfd91abe8f852e750820d73419387548f0881aa
4
+ data.tar.gz: c4cb9308720707cd332ac2cbe73a970d253ee8d3
5
5
  SHA512:
6
- metadata.gz: 1bcf83b410f896d6fcdf9b761dd5f5d740fc937d0a809eb5bf8f3cb4030a24f40c73d18505cb07ef8d279803f1f1765297a4b19db12dcecc186159fd3cecefcf
7
- data.tar.gz: 77e87a6b300443b961d43802e7a49e1c4648735b9cfd780ebd618d59c8f1263710f0c9b68ba5fd5a3e668119f32fb026a620c3aef009f76b37088301488e3c4b
6
+ metadata.gz: 458092883464ac5bff5d7a6e3e55816f6313e1edd7c0fab3467430b37ddde0ba4f9d8ace0d991960f0743ba0bceb66cf98af49367af0694b6d8b53ee0ea84009
7
+ data.tar.gz: 72145c6336ff633ae83e158d9ae3719d17bee626fae26cd3abe39f687e25279a3e4b53d6fe6464cc19b20bd9cf69b4c49019b537001f49da6873595d44622f96
@@ -19,6 +19,8 @@ module Prof
19
19
  version
20
20
  )
21
21
 
22
+ @version = Gem::Version.new(version)
23
+
22
24
  @api_installation_settings = @api.installation_settings
23
25
  end
24
26
 
@@ -47,7 +49,12 @@ module Prof
47
49
 
48
50
  product = get_product_for_job(manifest, job_type)
49
51
  ips = @api_installation_settings.ips_for_job(product_name: product['identifier'], job_name: job_type)
50
- vm_credentials = product["jobs"].detect { |job| job["installation_name"] == job_type }['vm_credentials']
52
+ job = product["jobs"].detect { |job| job["installation_name"] == job_type }
53
+ if @version >= Gem::Version.new('1.7')
54
+ vm_credentials = job['vm_credentials']
55
+ else
56
+ vm_credentials = job['properties'].detect { |p| p['identifier'] == 'vm_credentials' }['value']
57
+ end
51
58
 
52
59
  ips.map do |ip|
53
60
  OpenStruct.new(
data/lib/prof/version.rb CHANGED
@@ -9,5 +9,5 @@
9
9
  #
10
10
 
11
11
  module Prof
12
- VERSION = '0.31.0'
12
+ VERSION = '0.31.1'
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.31.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CF London