fix: use project of instance
This commit is contained in:
parent
a6cdcdaee5
commit
417f44bc78
@ -144,7 +144,8 @@ func (u *Upstreams) provisionCandidates(ctx caddy.Context, conn incus.InstanceSe
|
|||||||
zap.String("port", port),
|
zap.String("port", port),
|
||||||
)
|
)
|
||||||
|
|
||||||
instanceFull, _, err := conn.GetInstanceFull(i.Name)
|
pConn := conn.UseProject(i.Project)
|
||||||
|
instanceFull, _, err := pConn.GetInstanceFull(i.Name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.Logger().Error("unable to get full instance info",
|
ctx.Logger().Error("unable to get full instance info",
|
||||||
zap.String("instance_name", i.Name),
|
zap.String("instance_name", i.Name),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user