From aee419ee8e4d1883f6c4f0e437d739857d37b301 Mon Sep 17 00:00:00 2001 From: Ellis Pires Date: Wed, 22 Oct 2025 22:09:38 +0100 Subject: [PATCH] fix(cmd/smd): correct smd component add example Fixed an error in the example provided for adding an smd component from a json payload; "Enabled" field should be a boolean instead of a string or json marshalling fails. ERR lib.go:472 > unable to read payload data or file error="unable to unmarshal bytes into value: json: cannot unmarshal string into Go struct field Component.Components.Enabled of type bool Signed-off-by: Ellis Pires --- cmd/smd-component-add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/smd-component-add.go b/cmd/smd-component-add.go index 664defc6..581db509 100644 --- a/cmd/smd-component-add.go +++ b/cmd/smd-component-add.go @@ -41,7 +41,7 @@ See ochami-smd(1) for more details.`, "NID": 56, "State": "Ready", "Role": "Compute", - "Enabled": "True", + "Enabled": true, "Arch": "X86" } ]