Skip to content

Commit

Permalink
lxd: Render api.MetadataConfiguration on /1.0/metadata/configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <mark.laing@canonical.com>
  • Loading branch information
markylaing committed Sep 25, 2024
1 parent 284da9a commit b5ea215
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lxd/documentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/http"

"github.com/canonical/lxd/lxd/response"
"github.com/canonical/lxd/shared/api"
)

var metadataConfigurationCmd = APIEndpoint{
Expand Down Expand Up @@ -58,7 +59,7 @@ func metadataConfigurationGet(d *Daemon, r *http.Request) response.Response {
return response.SmartError(err)
}

var data map[string]any
var data api.MetadataConfiguration
err = json.Unmarshal(file, &data)
if err != nil {
return response.SmartError(err)
Expand Down

0 comments on commit b5ea215

Please sign in to comment.