-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add patch to force endpoint empty array
- Loading branch information
Showing
4 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
api/patch/force-endpoint-even-when-there-is-no-link.redfish.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From e3add1887e6d256b255d5fd48f5e1d2bbe4402c8 Mon Sep 17 00:00:00 2001 | ||
From: Hongjian Fan <[email protected]> | ||
Date: Fri, 9 Aug 2024 08:16:44 -0500 | ||
Subject: [PATCH] patch: force endpoint even when there is no link | ||
|
||
--- | ||
pkg/redfishapi/model_memory_chunks_v1_6_1_links.go | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/pkg/redfishapi/model_memory_chunks_v1_6_1_links.go b/pkg/redfishapi/model_memory_chunks_v1_6_1_links.go | ||
index 6f6d6f2..176899b 100644 | ||
--- a/pkg/redfishapi/model_memory_chunks_v1_6_1_links.go | ||
+++ b/pkg/redfishapi/model_memory_chunks_v1_6_1_links.go | ||
@@ -18,10 +18,10 @@ type MemoryChunksV161Links struct { | ||
CXLLogicalDevicesodataCount int64 `json:"[email protected],omitempty"` | ||
|
||
// An array of links to the endpoints that connect to this memory chunk. | ||
- Endpoints []OdataV4IdRef `json:"Endpoints,omitempty"` | ||
+ Endpoints []OdataV4IdRef `json:"Endpoints"` // manual change to force endpoint even when there is no link | ||
|
||
// The number of items in a collection. | ||
- EndpointsodataCount int64 `json:"[email protected],omitempty"` | ||
+ EndpointsodataCount int64 `json:"[email protected]"` // manual change to force endpoint even when there is no link | ||
|
||
// An array of links to the memory regions for which this memory chunk provides capacity. | ||
MemoryRegions []OdataV4IdRef `json:"MemoryRegions,omitempty"` | ||
-- | ||
2.25.1 | ||
|