idrac 0.7.2 → 0.7.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22b52cfb61debc75aaa1c5606ac2a0464aa91e53f77bfe76ad33537910566b0f
4
- data.tar.gz: f92e67c7083e8487b03bf073a982802d1c7a3469dcd6d37b610c7ee9ee6aa5ac
3
+ metadata.gz: 2daa5d9eb50a541d372954c84db4e371b0f34b02aaf4e57d915d0a08a4a839d5
4
+ data.tar.gz: 994b6605e51925c70d1c6948aa8855f45018b951c58c96bc464f4a7598f48827
5
5
  SHA512:
6
- metadata.gz: 2f600e23c1b6704ea0f8f54f75a728731b02b984d5ba86186af74fac64174c4e4bff5ca10921600aed2fee2d12477a3ec14350e1b897f6fa2367d8a05f379b6e
7
- data.tar.gz: 234a355730c45705ab8a2e4325b27b638adc340c0270c14718054d35370a5422aacf8e5b2bf2a6bdbae31437d5ac1000da5e2846aef1096a7d84f19d997f9be1
6
+ metadata.gz: 4430c49903bfff3a52f746b1a526ca7ffce1d116fef8dc8a1c610daa03bee6c3dafc7a5828483a9db58269d6082b384ba60e1d5897e6cc10df867988123905d6
7
+ data.tar.gz: ad6ecfb6c6908ddb7c7572db3265c6e10eb985374046aa6af172fbc917fe4e4db246e9336c780872f6a243fbc3d6b5145dd8bafd6cff972e47f855fe1011fbc0
data/README.md CHANGED
@@ -218,6 +218,9 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
218
218
 
219
219
  ## Changelog
220
220
 
221
+ ### Version 0.7.3
222
+ - Improved error handling around SystemConfigurationProfile.
223
+
221
224
  ### Version 0.7.2
222
225
  - **Added iDRAC Reset Functionality**: New `reset!` method to gracefully restart the iDRAC controller
223
226
  - Added CLI command `idrac reset` to restart iDRAC from the command line
@@ -165,7 +165,9 @@ module IDRAC
165
165
  body: {"ExportFormat": "JSON", "ShareParameters":{"Target": target}}.to_json,
166
166
  headers: {"Content-Type" => "application/json"}
167
167
  )
168
- scp = handle_location(response.headers["location"])
168
+ scp = handle_location(response.headers["location"])
169
+ # We experienced this with older iDRACs, so let's give a enriched error to help debug.
170
+ raise(Error, "Failed exporting SCP, no location header found in response. Response: #{response.inspect}") if scp.nil?
169
171
  raise(Error, "Failed exporting SCP, taskstate: #{scp["TaskState"]}, taskstatus: #{scp["TaskStatus"]}") unless scp["SystemConfiguration"]
170
172
  return scp
171
173
  end
data/lib/idrac/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IDRAC
4
- VERSION = "0.7.2"
4
+ VERSION = "0.7.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idrac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Siegel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-04 00:00:00.000000000 Z
11
+ date: 2025-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty