-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
After posting a partial update to the /api/inventory endpoint (format json), the API responds OK, with the changes mentioned correctly, but the result is not processed in the inventory yaml. On the RackPeek console (docker stdout), this error is observed:
fail: DocMigrator.Yaml.YamlMigrationDeserializer[0]
Failed to deserialize YamlRoot
(Line: 3, Col: 3, Idx: 24) - (Line: 3, Col: 3, Idx: 24): Exception during deserialization
RackPeek version: 1.2.0
OS: Ubuntu 24.04
Where does this occur?
Web UI
How do you run RackPeek?
Docker
RackPeek version
1.2.0
Steps to reproduce (optional)
POST /api/inventory
Header: X-API-KEY: xxx
Body:
{
"json": {
"version": 2,
"resources": [
{
"kind": "Server",
"name": "server1"
}
]
}
}Response:
Responsecode: 200
Body:
{
"added": [
"server1"
],
"updated": [],
"replaced": [],
"oldYaml": {},
"newYaml": {
"server1": "name: server1\n"
}
}Screenshots (optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working