Oem entry for HPE is now Hpe not Hp anymore

Change-Id: Icec33d4f5d1923acd95eccb8e787cb0deca66a59
This commit is contained in:
Bruno Cornec 2019-03-20 02:09:01 +01:00
parent dd1b2d2138
commit b80503b10d
2 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ Ethernet Interface :
This system has no ethernet interface as Redfish standard data
{%- endif %}
Looking for potential OEM information :
{%- if system.data.Oem.Hp %}
{%- if system.data.Oem.Hpe %}
Supplemental information from HPE OEM part.
{%- if system.network_adapters_collection %}
{%- for networkadapter_index in system.network_adapters_collection.network_adapters_dict | sort %}
@ -84,7 +84,7 @@ Simple Storage :
This system has no simple storage as Redfish standard data
{%- endif %}
Looking for potential OEM information :
{%- if system.data.Oem.Hp %}
{%- if system.data.Oem.Hpe %}
Supplemental information from HPE OEM part.
{%- if system.smart_storage %}
{%- for array_controllers_index in system.smart_storage.array_controllers_collection.array_controllers_dict | sort %}
@ -105,4 +105,4 @@ Looking for potential OEM information :
This system has no supplemental OEM information
{%- endif %}
--------------------------------------------------------------------------------
{% endfor %}
{% endfor %}

View File

@ -213,12 +213,12 @@ class Systems(Device):
self.simple_storage_collection = None
try:
self.data.Oem.Hp
self.data.Oem.Hpe
try:
self.network_adapters_collection = \
hpe.NetworkAdaptersCollection(
self.get_link_url('NetworkAdapters',
self.data.Oem.Hp.Links),
self.data.Oem.Hpe.Links),
connection_parameters)
except AttributeError:
# This means we don't have NetworkAdapters
@ -227,7 +227,7 @@ class Systems(Device):
self.smart_storage = \
hpe.SmartStorage(
self.get_link_url('SmartStorage',
self.data.Oem.Hp.Links),
self.data.Oem.Hpe.Links),
connection_parameters)
except AttributeError:
# This means we don't have SmartStorage