From 9e1b46170c46be031ca5d6659f204781e1f4e15b Mon Sep 17 00:00:00 2001 From: Abner Chang Date: Fri, 22 Mar 2024 17:07:59 +0800 Subject: [PATCH] RedfishClientPkg/FeatureDriver: Use SetRedfishSettingsObjectsUri Use SetRedfishSettingsObjectsUri to set the config language for SettingsObject URI. Signed-off-by: Abner Chang Co-authored-by: Nickle Wang Cc: Igor Kulchytskyy Reviewed-by: Nickle Wang --- RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c | 1 + RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.c | 1 + .../Features/ComputerSystem/v1_13_0/Dxe/ComputerSystemDxe.c | 1 + .../Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c | 1 + RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c | 1 + 5 files changed, 5 insertions(+) diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c index 1ca920640..bb64ef862 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c @@ -141,6 +141,7 @@ RedfishResourceConsumeResource ( ); if (!EFI_ERROR (Status)) { DEBUG ((REDFISH_DEBUG_TRACE, "%a: @Redfish.Settings found: %s\n", __func__, PendingSettingUri)); + SetRedfishSettingsObjectsUri (Private->Uri, PendingSettingUri); Private->Uri = PendingSettingUri; ExpectedResponse = &PendingSettingResponse; } else { diff --git a/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.c b/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.c index 7501c1a97..5a66fe59e 100644 --- a/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.c +++ b/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.c @@ -130,6 +130,7 @@ RedfishResourceConsumeResource ( ); if (!EFI_ERROR (Status)) { DEBUG ((REDFISH_BOOT_OPTION_DEBUG_TRACE, "%a: @Redfish.Settings found: %s\n", __func__, PendingSettingUri)); + SetRedfishSettingsObjectsUri (Private->Uri, PendingSettingUri); Private->Uri = PendingSettingUri; ExpectedResponse = &PendingSettingResponse; } else { diff --git a/RedfishClientPkg/Features/ComputerSystem/v1_13_0/Dxe/ComputerSystemDxe.c b/RedfishClientPkg/Features/ComputerSystem/v1_13_0/Dxe/ComputerSystemDxe.c index 1235760a1..a0c71212b 100644 --- a/RedfishClientPkg/Features/ComputerSystem/v1_13_0/Dxe/ComputerSystemDxe.c +++ b/RedfishClientPkg/Features/ComputerSystem/v1_13_0/Dxe/ComputerSystemDxe.c @@ -133,6 +133,7 @@ RedfishResourceConsumeResource ( ); if (!EFI_ERROR (Status)) { DEBUG ((REDFISH_DEBUG_TRACE, "%a: @Redfish.Settings found: %s\n", __func__, PendingSettingUri)); + SetRedfishSettingsObjectsUri (Private->Uri, PendingSettingUri); Private->Uri = PendingSettingUri; ExpectedResponse = &PendingSettingResponse; } else { diff --git a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c index 5207362da..494bf59df 100644 --- a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c +++ b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c @@ -134,6 +134,7 @@ RedfishResourceConsumeResource ( ); if (!EFI_ERROR (Status)) { DEBUG ((REDFISH_DEBUG_TRACE, "%a: @Redfish.Settings found: %s\n", __func__, PendingSettingUri)); + SetRedfishSettingsObjectsUri (Private->Uri, PendingSettingUri); Private->Uri = PendingSettingUri; ExpectedResponse = &PendingSettingResponse; } else { diff --git a/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c b/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c index c4a363cdf..f2c0a7735 100644 --- a/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c +++ b/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c @@ -134,6 +134,7 @@ RedfishResourceConsumeResource ( ); if (!EFI_ERROR (Status)) { DEBUG ((REDFISH_DEBUG_TRACE, "%a: @Redfish.Settings found: %s\n", __func__, PendingSettingUri)); + SetRedfishSettingsObjectsUri (Private->Uri, PendingSettingUri); Private->Uri = PendingSettingUri; ExpectedResponse = &PendingSettingResponse; } else {