idrac 0.8.4 → 0.8.6

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: 6f2dd002b1876905499180d33abb476ed732f945aef7df82ed55bc68887763fd
4
- data.tar.gz: a6a90ac44186a45ca043af595a2797d992d998b9da1a75a2d569c1ea2c7f0c1e
3
+ metadata.gz: ac429e71f14867043a891ec594d159e49210c4662f6c8993273423fc47470aea
4
+ data.tar.gz: e12a69a35a3846944b7868a301c9d59210afd855f8fd6a7ab59bb4a2f7f07140
5
5
  SHA512:
6
- metadata.gz: a75656b84dcc40e9fb80b65787dde092b71391cdb7d680c847cadd77394dc00c4081a772ed742d4ad758a4e075e1a00ef4a01ef2571a8901fa1347b176e1d578
7
- data.tar.gz: ac5962c3858f449c433cc9b76ad61bc72f316af028796ab04f363ce0f3cfd786ff3903fd7e09e07f220d5a7d40d45c4d591246eabcc31648a4071a2d27245241
6
+ metadata.gz: 26d106fec37924d587fbcc774e3d81a0a9a464b10fd68b831df60e08fcbcbfa8bec012e216cfa5ef13732f9198d5a2d64f6ac6c01393d6b088cd6d4d3ebc6eb8
7
+ data.tar.gz: 1144098c052f5d7939ff0fbcda31273e5287718a27803fd597f5decc4a90a9a0aa909ad9857f70b77063bfece56716734acf970afa8cefca7c20adb73ead2558
data/lib/idrac/storage.rb CHANGED
@@ -16,7 +16,8 @@ module IDRAC
16
16
  controller_data = {
17
17
  "id" => controller["Id"],
18
18
  "name" => controller["Name"],
19
- "model" => controller["Model"],
19
+ # Model is in the StorageControllers array, not at root level
20
+ "model" => controller.dig("StorageControllers", 0, "Model") || controller["Name"],
20
21
  "drives_count" => controller["Drives"].size,
21
22
  "status" => controller.dig("Status", "Health") || "N/A",
22
23
  "firmware_version" => controller.dig("StorageControllers", 0, "FirmwareVersion"),
data/lib/idrac/system.rb CHANGED
@@ -50,15 +50,17 @@ module IDRAC
50
50
 
51
51
  psus = data["PowerSupplies"].map do |psu|
52
52
  puts "PSU: #{psu["Name"]} > #{psu["PowerInputWatts"]}W > #{psu.dig("Status", "Health")}"
53
+
53
54
  {
54
55
  "name" => psu["Name"],
55
56
  "voltage" => psu["LineInputVoltage"],
56
- "voltage_human" => psu["LineInputVoltageType"], # AC240V
57
+ "voltage_human" => psu["LineInputVoltageType"], # Return exactly what server provides
57
58
  "watts" => psu["PowerInputWatts"],
58
59
  "part" => psu["PartNumber"],
59
60
  "model" => psu["Model"],
60
61
  "serial" => psu["SerialNumber"],
61
- "status" => psu.dig("Status", "Health")
62
+ "status" => psu.dig("Status", "Health"),
63
+ "power_supply_type" => psu["PowerSupplyType"] # Add this field
62
64
  }
63
65
  end
64
66
 
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.8.4"
4
+ VERSION = "0.8.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idrac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Siegel