Skip to content

Commit

Permalink
Merge pull request #77 from stmcginnis/status_state
Browse files Browse the repository at this point in the history
Fix Status structure format
  • Loading branch information
mraineri authored Aug 8, 2019
2 parents 06e8c8a + a435f7c commit 1a2b596
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api_emulator/redfish/templates/ethernetinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
u'NameServers': ['8.8.8.8'],
u'PermanentMACAddress': "':'.join(['%02x'%randint(0,255) for x in range(6)])",
u'SpeedMbps': 10000,
u'Status': {'State': {'Health': 'OK', 'State': 'Enabled'}},
u'Status': {'Health': 'OK', 'State': 'Enabled'},
u'VLAN': {u'VLANId': 0}}


Expand Down
2 changes: 1 addition & 1 deletion api_emulator/redfish/templates/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'MemoryType': '', # DRAM,NVDIMM_N,F,P
'OperatingMemoryModes': [], # Volatile,PMEM, Block
'SerialNumber': 'TJ27JXQY',
'Status': {'State': {'Health': 'OK', 'State': 'Enabled'}},
'Status': {'Health': 'OK', 'State': 'Enabled'},
'VendorID': 'Generic'}


Expand Down
4 changes: 2 additions & 2 deletions api_emulator/redfish/templates/simplestorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
u'Id': '{storage_id}',
u'Links': {u'Chassis': {'@odata.id': '{rb}Chassis/{chassis_id}'}},
u'Name': 'Simple Storage Controller',
u'Status': {'State': {'Health': 'OK', 'State': 'Enabled'}},
u'Status': {'Health': 'OK', 'State': 'Enabled'},
u'UefiDevicePath': 'ACPI(PnP)/PCI(1,0)/SAS(0x31000004CF13F6BD,0, SATA)'}

_DEVICE_TEMPLATE = {u'CapacityBytes': 550292684800,
u'Manufacturer': 'Generic',
u'Model': 'Generic SATA Disk',
u'Name': 'Generic Storage Device',
u'Status': {'State': {'Health': 'OK', 'State': 'Enabled'}}}
u'Status': {'Health': 'OK', 'State': 'Enabled'}}


def format_storage_template(**kwargs):
Expand Down

0 comments on commit 1a2b596

Please sign in to comment.