mirror of
https://github.com/acaloiaro/caddy-incus-upstreams
synced 2026-07-21 10:12:24 +00:00
fix: use project of instance
This commit is contained in:
parent
a6cdcdaee5
commit
417f44bc78
1 changed files with 2 additions and 1 deletions
|
|
@ -144,7 +144,8 @@ func (u *Upstreams) provisionCandidates(ctx caddy.Context, conn incus.InstanceSe
|
|||
zap.String("port", port),
|
||||
)
|
||||
|
||||
instanceFull, _, err := conn.GetInstanceFull(i.Name)
|
||||
pConn := conn.UseProject(i.Project)
|
||||
instanceFull, _, err := pConn.GetInstanceFull(i.Name)
|
||||
if err != nil {
|
||||
ctx.Logger().Error("unable to get full instance info",
|
||||
zap.String("instance_name", i.Name),
|
||||
|
|
|
|||
Loading…
Reference in a new issue