Skip to content

Commit

Permalink
RedfishClientPkg/RedfishFeatureUtilityLib: fix issues and enhancement
Browse files Browse the repository at this point in the history
-Add RedfishDebugLib to print Redfish request and response
details when PATCH and POST request return error.
-Use "%a:" in debug print to align with the style in EDK2.
-Enhance GetConfigureLang() to handle pending resource URI.
Pending resource share ths same schema as its active resource.
So we can simply remove "/Settings" from URI and search again.
-Enhancement to GetPropertyVagueValue(). This function stops
to handle remaining property while error happens. We like to
process as much as properties as we can and skip the problematic
property.
-Enhancement to MatchPropertyWithJsonContext(). For string type
of BIOS attribute, it is possible that the attribute value is
empty by default. This does not means that the resource is not
provisioned yet.

Signed-off-by: Nickle Wang <[email protected]>
Cc: Abner Chang <[email protected]>
Cc: Igor Kulchytskyy <[email protected]>
Cc: Nick Ramirez <[email protected]>
  • Loading branch information
nicklela committed Oct 31, 2023
1 parent dcbd878 commit 087e65a
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Common header file for RedfishFeatureUtilityLib driver.
(C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Expand All @@ -28,6 +29,7 @@
#include <Library/UefiLib.h>
#include <Library/PrintLib.h>
#include <Library/HttpLib.h>
#include <Library/RedfishDebugLib.h>

#include <Guid/VariableFormat.h>

Expand Down
Loading

0 comments on commit 087e65a

Please sign in to comment.