From 55962027eb82fa5547df718fd1540c8dd2062d76 Mon Sep 17 00:00:00 2001 From: Din Music Date: Wed, 17 Jan 2024 11:26:24 +0100 Subject: [PATCH] lxd/devlxd: Allow querying instance info when devlxd is disabled Signed-off-by: Din Music --- lxd/devlxd.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lxd/devlxd.go b/lxd/devlxd.go index 110f2753821b..ce0a5f00b6d5 100644 --- a/lxd/devlxd.go +++ b/lxd/devlxd.go @@ -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 {