Skip to content

Commit

Permalink
Omit rack id field when storing physical server
Browse files Browse the repository at this point in the history
Field in question should point to an existing physical rack. At the
moment, Redfish provider does not support adding racks to the
inventory, so this field should be omitted when saving the server.
  • Loading branch information
Tadej Borovšak committed Jun 14, 2018
1 parent fce4788 commit 2855182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ def physical_servers
:field_replaceable_unit => "dummy",
:raw_power_state => s["PowerState"],
:vendor => "unknown",
:location_led_state => s["IndicatorLED"],
:physical_rack_id => 0
:location_led_state => s["IndicatorLED"]
)
persister.computer_systems.build(:managed_entity => server)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ def assert_physical_servers
:field_replaceable_unit => "dummy",
:raw_power_state => "Off",
:vendor => "unknown",
:location_led_state => "Off",
:physical_rack_id => 0
:location_led_state => "Off"
)
end

Expand Down

0 comments on commit 2855182

Please sign in to comment.