This should prevent an infinite loop in the event of adding a member when:
No ID is present but an existing member exists with no number in the end (occurs when requesting a session using the publicrackmount1 schema example)
An ID specified in the body is added that already exists in members. If so it defaults to the pattern made by the first member (less likely to happen as you usually wouldn’t POST with an ID).
I understand that Redfish-Mockup-Server is meant to be a demo limited in functionality and scope, however I encountered this immediately upon spinning up the mockup server to use a redfish query tool which naturally requested a session. I’m hoping these fixes just add a bit more reliability for those that don’t want to spend time debugging or changing their mockup server schema.
This should prevent an infinite loop in the event of adding a member when:
publicrackmount1
schema example)I understand that Redfish-Mockup-Server is meant to be a demo limited in functionality and scope, however I encountered this immediately upon spinning up the mockup server to use a redfish query tool which naturally requested a session. I’m hoping these fixes just add a bit more reliability for those that don’t want to spend time debugging or changing their mockup server schema.