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 +4 -4
- data/lib/prof/ops_manager.rb +8 -1
- data/lib/prof/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcfd91abe8f852e750820d73419387548f0881aa
|
4
|
+
data.tar.gz: c4cb9308720707cd332ac2cbe73a970d253ee8d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 458092883464ac5bff5d7a6e3e55816f6313e1edd7c0fab3467430b37ddde0ba4f9d8ace0d991960f0743ba0bceb66cf98af49367af0694b6d8b53ee0ea84009
|
7
|
+
data.tar.gz: 72145c6336ff633ae83e158d9ae3719d17bee626fae26cd3abe39f687e25279a3e4b53d6fe6464cc19b20bd9cf69b4c49019b537001f49da6873595d44622f96
|
data/lib/prof/ops_manager.rb
CHANGED
@@ -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
|
-
|
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