opsmgr 0.34.0 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/opsmgr/api/http_client.rb +9 -9
- data/lib/opsmgr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3d410f8f4abbff124cdff2ffd9b15d0f8b24410
|
|
4
|
+
data.tar.gz: 6a3eda4d7544fa72a16c327ebb6bf1876ac90074
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5ac0eb7e7dba197de213665d16d17977dd4ba2ca4df39ba1a7b7b3011e8e9451c7c7e5f72f8eddd43281790f7853823b77b761f8170d065feb3bc86c92a50be
|
|
7
|
+
data.tar.gz: 27a3eb527eedac0a6d3c75111d15097ecfa4ca003380ce8c681ecd68ee47f2a011463aa45b55f8dc695051346f814840f06959fe3dab925135b57aacb48483b1
|
|
@@ -145,14 +145,7 @@ module Opsmgr
|
|
|
145
145
|
end
|
|
146
146
|
|
|
147
147
|
def create_the_first_user
|
|
148
|
-
if Gem::Version.new(@om_version)
|
|
149
|
-
req = Net::HTTP::Post.new(endpoints.api_user_path)
|
|
150
|
-
req.set_form_data(
|
|
151
|
-
'user[user_name]' => web_auth_user,
|
|
152
|
-
'user[password]' => web_auth_password,
|
|
153
|
-
'user[password_confirmation]' => web_auth_password,
|
|
154
|
-
)
|
|
155
|
-
else
|
|
148
|
+
if Gem::Version.new(@om_version) >= Gem::Version.new('1.6')
|
|
156
149
|
req = Net::HTTP::Post.new(endpoints.api_setup_path)
|
|
157
150
|
req.set_form_data(
|
|
158
151
|
'setup[user_name]' => web_auth_user,
|
|
@@ -160,6 +153,13 @@ module Opsmgr
|
|
|
160
153
|
'setup[password_confirmation]' => web_auth_password,
|
|
161
154
|
'setup[eula_accepted]' => true
|
|
162
155
|
)
|
|
156
|
+
else
|
|
157
|
+
req = Net::HTTP::Post.new(endpoints.api_user_path)
|
|
158
|
+
req.set_form_data(
|
|
159
|
+
'user[user_name]' => web_auth_user,
|
|
160
|
+
'user[password]' => web_auth_password,
|
|
161
|
+
'user[password_confirmation]' => web_auth_password,
|
|
162
|
+
)
|
|
163
163
|
end
|
|
164
164
|
|
|
165
165
|
http.request(req)
|
|
@@ -205,7 +205,7 @@ module Opsmgr
|
|
|
205
205
|
import_secret_parameter_name => password
|
|
206
206
|
)
|
|
207
207
|
|
|
208
|
-
add_auth_header(req)
|
|
208
|
+
add_auth_header(req)
|
|
209
209
|
|
|
210
210
|
response = http.request(req)
|
|
211
211
|
|
data/lib/opsmgr/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opsmgr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.34.
|
|
4
|
+
version: 0.34.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Release Engineering
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-02
|
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|