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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7927655fca079fcda9d87e9a2b528e747af59e9385a24ad3c59b92c0e0caa6dc
4
- data.tar.gz: 7981e1da150898a1b5a084f8277eb7a8cb642182ee1ef109764e3252a3109c42
3
+ metadata.gz: b945c1173e6a2b6e4f11611226c3de63bc3a7d0724ed1f4239cb14a01b115696
4
+ data.tar.gz: b38b4f8bef1d460d84bb0bb8d01060a0859cf4590b7c85c7ea92d18ff1da067e
5
5
  SHA512:
6
- metadata.gz: 6687e1bcc7461fef0bfba86dcd9b1436aed911ede07d917d5e28d8bb87aa19bb77eb6d106eb3f8f4fd2c1b75bbe2b566d496d70d884fd9350f5875c5f68b6e18
7
- data.tar.gz: 81df752a968d94871a7409bc6a057662c2842848cb8f3f1c2f43fa77bf5e9818f5fe052f6ece86ae3f0a97476dbb16c6c7678d8bda7dcc1106ea8c72abb70a12
6
+ metadata.gz: a6a95d53daede4e34e470eddf9f63ba08b411f8ad2dacccf4344a311e4aa38bfc5a9f7b00ce00220c114c3b54973eb9bedab30c06c3872a74fb2e7ec3c2059bc
7
+ data.tar.gz: d2f584fcf925dccbe82660182625643994b850820f0f81c6e5814745b77c0e19ff08723fd08c82e1c78933fe4f67c85820f6db16ec299346db8cdd5eebd26f30
@@ -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 = self.Links.Sessions.post(
61
- payload: { "UserName" => username, "Password" => password }
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedfishClient
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2018-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon