ops_manager_ui_drivers 2.14.2 → 2.14.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8e35fdf9dfff96f59baf9d476fbe393f1dbdc26
|
4
|
+
data.tar.gz: 7240dd8cd471e988da0ae5ca65833d24a3e329f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac2c0b7209fcd7adc283f1cafbfb8beb4bb95d054b076fcf77d48c73630b42e4eda21ea4b1d54925f952edea503ea311dbfd224256e4babf230eff0e40076f03
|
7
|
+
data.tar.gz: c6e08245e59afb8a67d801c2e103692b340e018e5996791d5524c48602b90e0871faca6068f78d2fd432e66f99c333282c8f584138b48b0499f8fcc89ed38932
|
@@ -39,6 +39,10 @@ module OpsManagerUiDrivers
|
|
39
39
|
get_deployed_products.find { |product| product['type'] == name }.try(:[], 'guid')
|
40
40
|
end
|
41
41
|
|
42
|
+
def set_director_second_network(network_name)
|
43
|
+
http.request(put('v0/staged/director/second_network', {second_network: {name: network_name}}.to_json, uaa_token.auth_header))
|
44
|
+
end
|
45
|
+
|
42
46
|
private
|
43
47
|
|
44
48
|
def uaa_token
|
@@ -53,10 +57,11 @@ module OpsManagerUiDrivers
|
|
53
57
|
end
|
54
58
|
end
|
55
59
|
|
56
|
-
def put(endpoint,
|
60
|
+
def put(endpoint, json_body, token=nil)
|
57
61
|
Net::HTTP::Put.new(api_uri(endpoint).request_uri).tap do |put_request|
|
58
62
|
add_auth_to_request(put_request, token)
|
59
|
-
put_request.
|
63
|
+
put_request.body= json_body
|
64
|
+
put_request.content_type = 'application/json'
|
60
65
|
end
|
61
66
|
end
|
62
67
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ops_manager_ui_drivers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.14.
|
4
|
+
version: 2.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pivotal, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|