redfish_client 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redfish_client/root.rb +4 -2
- data/lib/redfish_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b945c1173e6a2b6e4f11611226c3de63bc3a7d0724ed1f4239cb14a01b115696
|
4
|
+
data.tar.gz: b38b4f8bef1d460d84bb0bb8d01060a0859cf4590b7c85c7ea92d18ff1da067e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6a95d53daede4e34e470eddf9f63ba08b411f8ad2dacccf4344a311e4aa38bfc5a9f7b00ce00220c114c3b54973eb9bedab30c06c3872a74fb2e7ec3c2059bc
|
7
|
+
data.tar.gz: d2f584fcf925dccbe82660182625643994b850820f0f81c6e5814745b77c0e19ff08723fd08c82e1c78933fe4f67c85820f6db16ec299346db8cdd5eebd26f30
|
data/lib/redfish_client/root.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "base64"
|
4
|
+
require "json"
|
4
5
|
require "redfish_client/resource"
|
5
6
|
|
6
7
|
module RedfishClient
|
@@ -57,8 +58,9 @@ module RedfishClient
|
|
57
58
|
end
|
58
59
|
|
59
60
|
def session_login(username, password)
|
60
|
-
r =
|
61
|
-
|
61
|
+
r = @connector.post(
|
62
|
+
@content["Links"]["Sessions"]["@odata.id"],
|
63
|
+
{ "UserName" => username, "Password" => password }.to_json
|
62
64
|
)
|
63
65
|
raise AuthError, "Invalid credentials" unless r.status == 201
|
64
66
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redfish_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tadej Borovšak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|