Commit 5271a27
committed
vpd-tool: Fix dump object path
This commit adds the base inventory path which is,
‘/xyz/openbmc_project/inventory’ to the user given object path. As the
user of the vpd-tool gives object path, which starts after this base
path.
Output:
‘’’
Command without base path:
root@p10bmc:/tmp# ./vpd-tool -o -O /system/chassis
[
{
"/xyz/openbmc_project/inventory/system/chassis": {
"CC": "2E33",
"DR": "SYSTEM BACKPLANE",
"FN": "F040221",
"LocationCode": "U780C.ND0.1234567",
"PN": "PN12345",
"PrettyName": "Chassis",
"SN": "YL2E33010000",
"type": "xyz.openbmc_project.Inventory.Item.Chassis"
}
}
]
Command with base path:
root@p10bmc:/tmp# ./vpd-tool -o -O /xyz/openbmc_project/inventory/system/chassis
FRU [/xyz/openbmc_project/inventory/xyz/openbmc_project/inventory/system/chassis] is not present in the system
‘’’
Signed-off-by: Anupama B R <[email protected]>1 parent 6a8e56f commit 5271a27
2 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | | - | |
108 | | - | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
115 | | - | |
116 | | - | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
0 commit comments