Skip to content

Commit

Permalink
Modified delete_object in utils.py to delete information from member …
Browse files Browse the repository at this point in the history
…and member_ids so that we can actually make use of them to check if methods are being excuted on valid IDs.

Signed-off-by: Christian Pinto <christian.pinto@ibm.com>
  • Loading branch information
christian-pinto committed Nov 1, 2023
1 parent d763b03 commit a899dd1
Show file tree
Hide file tree
Showing 808 changed files with 820 additions and 810 deletions.
2 changes: 1 addition & 1 deletion api_emulator/redfish/AccelerationFunction0_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ComputerSystemId, ProcessorId, AccelerationFunctionId):
if code == 200:
path = create_path(self.root, 'Systems/{0}/Processors/{1}/AccelerationFunctions/{2}').format(ComputerSystemId, ProcessorId, AccelerationFunctionId)
base_path = create_path(self.root, 'Systems/{0}/Processors/{1}/AccelerationFunctions').format(ComputerSystemId, ProcessorId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AccelerationFunction1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ProcessorId, AccelerationFunctionId):
if code == 200:
path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Processors/{1}/AccelerationFunctions/{2}').format(ResourceBlockId, ProcessorId, AccelerationFunctionId)
base_path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Processors/{1}/AccelerationFunctions').format(ResourceBlockId, ProcessorId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AccelerationFunction2_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ComputerSystemId, ProcessorId, AccelerationFun
if code == 200:
path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Systems/{1}/Processors/{2}/AccelerationFunctions/{3}').format(ResourceBlockId, ComputerSystemId, ProcessorId, AccelerationFunctionId)
base_path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Systems/{1}/Processors/{2}/AccelerationFunctions').format(ResourceBlockId, ComputerSystemId, ProcessorId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AccelerationFunction3_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ProcessorId, AccelerationFunctionId):
if code == 200:
path = create_path(self.root, 'ResourceBlocks/{0}/Processors/{1}/AccelerationFunctions/{2}').format(ResourceBlockId, ProcessorId, AccelerationFunctionId)
base_path = create_path(self.root, 'ResourceBlocks/{0}/Processors/{1}/AccelerationFunctions').format(ResourceBlockId, ProcessorId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AccelerationFunction4_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ComputerSystemId, ProcessorId, AccelerationFun
if code == 200:
path = create_path(self.root, 'ResourceBlocks/{0}/Systems/{1}/Processors/{2}/AccelerationFunctions/{3}').format(ResourceBlockId, ComputerSystemId, ProcessorId, AccelerationFunctionId)
base_path = create_path(self.root, 'ResourceBlocks/{0}/Systems/{1}/Processors/{2}/AccelerationFunctions').format(ResourceBlockId, ComputerSystemId, ProcessorId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AddressPool_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, FabricId, AddressPoolId):
if code == 200:
path = create_path(self.root, 'Fabrics/{0}/AddressPools/{1}').format(FabricId, AddressPoolId)
base_path = create_path(self.root, 'Fabrics/{0}/AddressPools').format(FabricId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Aggregate_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def delete(self, AggregateId):
if code == 200:
path = create_path(self.root, 'AggregationService/Aggregates/{0}').format(AggregateId)
base_path = create_path(self.root, 'AggregationService/Aggregates')
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AggregationSource_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def delete(self, AggregationSourceId):
if code == 200:
path = create_path(self.root, 'AggregationService/AggregationSources/{0}').format(AggregationSourceId)
base_path = create_path(self.root, 'AggregationService/AggregationSources')
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AllowDeny0_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ChassisId, NetworkAdapterId, NetworkDeviceFunctionId, AllowDeny
if code == 200:
path = create_path(self.root, 'Chassis/{0}/NetworkAdapters/{1}/NetworkDeviceFunctions/{2}/AllowDeny/{3}').format(ChassisId, NetworkAdapterId, NetworkDeviceFunctionId, AllowDenyId)
base_path = create_path(self.root, 'Chassis/{0}/NetworkAdapters/{1}/NetworkDeviceFunctions/{2}/AllowDeny').format(ChassisId, NetworkAdapterId, NetworkDeviceFunctionId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AllowDeny1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ComputerSystemId, NetworkInterfaceId, NetworkDeviceFunctionsNet
if code == 200:
path = create_path(self.root, 'Systems/{0}/NetworkInterfaces/{1}/NetworkDeviceFunctions{NetworkDeviceFunctionId}/AllowDeny/{3}').format(ComputerSystemId, NetworkInterfaceId, NetworkDeviceFunctionsNetworkDeviceFunctionId, AllowDenyId)
base_path = create_path(self.root, 'Systems/{0}/NetworkInterfaces/{1}/NetworkDeviceFunctions{NetworkDeviceFunctionId}/AllowDeny').format(ComputerSystemId, NetworkInterfaceId, NetworkDeviceFunctionsNetworkDeviceFunctionId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AllowDeny2_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, NetworkInterfaceId, NetworkDeviceFunctionsNetw
if code == 200:
path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/NetworkInterfaces/{1}/NetworkDeviceFunctions{NetworkDeviceFunctionId}/AllowDeny/{3}').format(ResourceBlockId, NetworkInterfaceId, NetworkDeviceFunctionsNetworkDeviceFunctionId, AllowDenyId)
base_path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/NetworkInterfaces/{1}/NetworkDeviceFunctions{NetworkDeviceFunctionId}/AllowDeny').format(ResourceBlockId, NetworkInterfaceId, NetworkDeviceFunctionsNetworkDeviceFunctionId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AllowDeny3_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ComputerSystemId, NetworkInterfaceId, NetworkD
if code == 200:
path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Systems/{1}/NetworkInterfaces/{2}/NetworkDeviceFunctions{NetworkDeviceFunctionId}/AllowDeny/{4}').format(ResourceBlockId, ComputerSystemId, NetworkInterfaceId, NetworkDeviceFunctionsNetworkDeviceFunctionId, AllowDenyId)
base_path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Systems/{1}/NetworkInterfaces/{2}/NetworkDeviceFunctions{NetworkDeviceFunctionId}/AllowDeny').format(ResourceBlockId, ComputerSystemId, NetworkInterfaceId, NetworkDeviceFunctionsNetworkDeviceFunctionId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AllowDeny4_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, NetworkInterfaceId, NetworkDeviceFunctionsNetw
if code == 200:
path = create_path(self.root, 'ResourceBlocks/{0}/NetworkInterfaces/{1}/NetworkDeviceFunctions{NetworkDeviceFunctionId}/AllowDeny/{3}').format(ResourceBlockId, NetworkInterfaceId, NetworkDeviceFunctionsNetworkDeviceFunctionId, AllowDenyId)
base_path = create_path(self.root, 'ResourceBlocks/{0}/NetworkInterfaces/{1}/NetworkDeviceFunctions{NetworkDeviceFunctionId}/AllowDeny').format(ResourceBlockId, NetworkInterfaceId, NetworkDeviceFunctionsNetworkDeviceFunctionId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/AllowDeny5_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ComputerSystemId, NetworkInterfaceId, NetworkD
if code == 200:
path = create_path(self.root, 'ResourceBlocks/{0}/Systems/{1}/NetworkInterfaces/{2}/NetworkDeviceFunctions{NetworkDeviceFunctionId}/AllowDeny/{4}').format(ResourceBlockId, ComputerSystemId, NetworkInterfaceId, NetworkDeviceFunctionsNetworkDeviceFunctionId, AllowDenyId)
base_path = create_path(self.root, 'ResourceBlocks/{0}/Systems/{1}/NetworkInterfaces/{2}/NetworkDeviceFunctions{NetworkDeviceFunctionId}/AllowDeny').format(ResourceBlockId, ComputerSystemId, NetworkInterfaceId, NetworkDeviceFunctionsNetworkDeviceFunctionId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Battery_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ChassisId, BatteryId):
if code == 200:
path = create_path(self.root, 'Chassis/{0}/PowerSubsystem/Batteries/{1}').format(ChassisId, BatteryId)
base_path = create_path(self.root, 'Chassis/{0}/PowerSubsystem/Batteries').format(ChassisId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/BootOption0_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ComputerSystemId, BootOptionId):
if code == 200:
path = create_path(self.root, 'Systems/{0}/BootOptions/{1}').format(ComputerSystemId, BootOptionId)
base_path = create_path(self.root, 'Systems/{0}/BootOptions').format(ComputerSystemId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/BootOption1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ComputerSystemId, BootOptionId):
if code == 200:
path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Systems/{1}/BootOptions/{2}').format(ResourceBlockId, ComputerSystemId, BootOptionId)
base_path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Systems/{1}/BootOptions').format(ResourceBlockId, ComputerSystemId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/BootOption2_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ComputerSystemId, BootOptionId):
if code == 200:
path = create_path(self.root, 'ResourceBlocks/{0}/Systems/{1}/BootOptions/{2}').format(ResourceBlockId, ComputerSystemId, BootOptionId)
base_path = create_path(self.root, 'ResourceBlocks/{0}/Systems/{1}/BootOptions').format(ResourceBlockId, ComputerSystemId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Cable_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def delete(self, CableId):
if code == 200:
path = create_path(self.root, 'Cables/{0}').format(CableId)
base_path = create_path(self.root, 'Cables')
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Capacity0_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, StorageServiceId, StoragePoolId, CapacitySourceId):
if code == 200:
path = create_path(self.root, 'StorageServices/{0}/StoragePools/{1}/CapacitySources/{2}').format(StorageServiceId, StoragePoolId, CapacitySourceId)
base_path = create_path(self.root, 'StorageServices/{0}/StoragePools/{1}/CapacitySources').format(StorageServiceId, StoragePoolId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Capacity1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, StorageServiceId, VolumeId, CapacitySourceId):
if code == 200:
path = create_path(self.root, 'StorageServices/{0}/Volumes/{1}/CapacitySources/{2}').format(StorageServiceId, VolumeId, CapacitySourceId)
base_path = create_path(self.root, 'StorageServices/{0}/Volumes/{1}/CapacitySources').format(StorageServiceId, VolumeId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Capacity2_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, StorageServiceId, FileSystemId, CapacitySourceId):
if code == 200:
path = create_path(self.root, 'StorageServices/{0}/FileSystems/{1}/CapacitySources/{2}').format(StorageServiceId, FileSystemId, CapacitySourceId)
base_path = create_path(self.root, 'StorageServices/{0}/FileSystems/{1}/CapacitySources').format(StorageServiceId, FileSystemId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Capacity3_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, StorageId, StoragePoolId, CapacitySourceId):
if code == 200:
path = create_path(self.root, 'Storage/{0}/StoragePools/{1}/CapacitySources/{2}').format(StorageId, StoragePoolId, CapacitySourceId)
base_path = create_path(self.root, 'Storage/{0}/StoragePools/{1}/CapacitySources').format(StorageId, StoragePoolId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Capacity4_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, StorageId, VolumeId, CapacitySourceId):
if code == 200:
path = create_path(self.root, 'Storage/{0}/Volumes/{1}/CapacitySources/{2}').format(StorageId, VolumeId, CapacitySourceId)
base_path = create_path(self.root, 'Storage/{0}/Volumes/{1}/CapacitySources').format(StorageId, VolumeId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Capacity5_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, StorageId, FileSystemId, CapacitySourceId):
if code == 200:
path = create_path(self.root, 'Storage/{0}/FileSystems/{1}/CapacitySources/{2}').format(StorageId, FileSystemId, CapacitySourceId)
base_path = create_path(self.root, 'Storage/{0}/FileSystems/{1}/CapacitySources').format(StorageId, FileSystemId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Capacity6_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ComputerSystemId, StorageId, StoragePoolId, CapacitySourceId):
if code == 200:
path = create_path(self.root, 'Systems/{0}/Storage/{1}/StoragePools/{2}/CapacitySources/{3}').format(ComputerSystemId, StorageId, StoragePoolId, CapacitySourceId)
base_path = create_path(self.root, 'Systems/{0}/Storage/{1}/StoragePools/{2}/CapacitySources').format(ComputerSystemId, StorageId, StoragePoolId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Capacity7_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ComputerSystemId, StorageId, VolumeId, CapacitySourceId):
if code == 200:
path = create_path(self.root, 'Systems/{0}/Storage/{1}/Volumes/{2}/CapacitySources/{3}').format(ComputerSystemId, StorageId, VolumeId, CapacitySourceId)
base_path = create_path(self.root, 'Systems/{0}/Storage/{1}/Volumes/{2}/CapacitySources').format(ComputerSystemId, StorageId, VolumeId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Capacity8_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ComputerSystemId, StorageId, FileSystemId, CapacitySourceId):
if code == 200:
path = create_path(self.root, 'Systems/{0}/Storage/{1}/FileSystems/{2}/CapacitySources/{3}').format(ComputerSystemId, StorageId, FileSystemId, CapacitySourceId)
base_path = create_path(self.root, 'Systems/{0}/Storage/{1}/FileSystems/{2}/CapacitySources').format(ComputerSystemId, StorageId, FileSystemId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Certificate0_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ManagerAccountId, CertificateId):
if code == 200:
path = create_path(self.root, 'AccountService/Accounts/{0}/Certificates/{1}').format(ManagerAccountId, CertificateId)
base_path = create_path(self.root, 'AccountService/Accounts/{0}/Certificates').format(ManagerAccountId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Certificate10_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ComputerSystemId, CertificateId):
if code == 200:
path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Systems/{1}/Boot/Certificates/{2}').format(ResourceBlockId, ComputerSystemId, CertificateId)
base_path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Systems/{1}/Boot/Certificates').format(ResourceBlockId, ComputerSystemId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Certificate11_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ComputerSystemId, CertificateId):
if code == 200:
path = create_path(self.root, 'ResourceBlocks/{0}/Systems/{1}/Boot/Certificates/{2}').format(ResourceBlockId, ComputerSystemId, CertificateId)
base_path = create_path(self.root, 'ResourceBlocks/{0}/Systems/{1}/Boot/Certificates').format(ResourceBlockId, ComputerSystemId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Certificate12_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ComputerSystemId, DatabaseId, CertificateId):
if code == 200:
path = create_path(self.root, 'Systems/{0}/SecureBoot/SecureBootDatabases/{1}/Certificates/{2}').format(ComputerSystemId, DatabaseId, CertificateId)
base_path = create_path(self.root, 'Systems/{0}/SecureBoot/SecureBootDatabases/{1}/Certificates').format(ComputerSystemId, DatabaseId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Certificate13_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ComputerSystemId, DatabaseId, CertificateId):
if code == 200:
path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Systems/{1}/SecureBoot/SecureBootDatabases/{2}/Certificates/{3}').format(ResourceBlockId, ComputerSystemId, DatabaseId, CertificateId)
base_path = create_path(self.root, 'CompositionService/ResourceBlocks/{0}/Systems/{1}/SecureBoot/SecureBootDatabases/{2}/Certificates').format(ResourceBlockId, ComputerSystemId, DatabaseId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Certificate14_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, ResourceBlockId, ComputerSystemId, DatabaseId, CertificateId):
if code == 200:
path = create_path(self.root, 'ResourceBlocks/{0}/Systems/{1}/SecureBoot/SecureBootDatabases/{2}/Certificates/{3}').format(ResourceBlockId, ComputerSystemId, DatabaseId, CertificateId)
base_path = create_path(self.root, 'ResourceBlocks/{0}/Systems/{1}/SecureBoot/SecureBootDatabases/{2}/Certificates').format(ResourceBlockId, ComputerSystemId, DatabaseId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Certificate15_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, EventDestinationId, CertificateId):
if code == 200:
path = create_path(self.root, 'EventService/Subscriptions/{0}/Certificates/{1}').format(EventDestinationId, CertificateId)
base_path = create_path(self.root, 'EventService/Subscriptions/{0}/Certificates').format(EventDestinationId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

2 changes: 1 addition & 1 deletion api_emulator/redfish/Certificate16_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def delete(self, EventDestinationId, CertificateId):
if code == 200:
path = create_path(self.root, 'EventService/Subscriptions/{0}/ClientCertificates/{1}').format(EventDestinationId, CertificateId)
base_path = create_path(self.root, 'EventService/Subscriptions/{0}/ClientCertificates').format(EventDestinationId)
return delete_object(path, base_path)
return delete_object(path, base_path, members=members, member_ids=member_ids)
else:
return msg, code

0 comments on commit a899dd1

Please sign in to comment.