Skip to content

Commit

Permalink
Merge pull request #12732 from MusicDin/lts/fix/enable-devlxd
Browse files Browse the repository at this point in the history
Allow re-enabling security.devlxd (stable-5.0)
  • Loading branch information
tomponline authored Jan 18, 2024
2 parents c5e298c + 5596202 commit fcb5570
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lxd/devlxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,6 @@ var devlxdEventsGet = devLxdHandler{"/1.0/events", func(d *Daemon, c instance.In
}}

var devlxdAPIGet = devLxdHandler{"/1.0", func(d *Daemon, c instance.Instance, w http.ResponseWriter, r *http.Request) response.Response {
if shared.IsFalse(c.ExpandedConfig()["security.devlxd"]) {
return response.DevLxdErrorResponse(api.StatusErrorf(http.StatusForbidden, "not authorized"), c.Type() == instancetype.VM)
}

location := "none"

if d.serverClustered {
Expand Down

0 comments on commit fcb5570

Please sign in to comment.