mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
lbbackends: 使用yunion.io/pkg/errors
This commit is contained in:
@@ -19,10 +19,9 @@ import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"yunion.io/x/jsonutils"
|
||||
"yunion.io/x/log"
|
||||
"yunion.io/x/pkg/errors"
|
||||
"yunion.io/x/pkg/util/compare"
|
||||
"yunion.io/x/pkg/utils"
|
||||
"yunion.io/x/sqlchemy"
|
||||
@@ -292,12 +291,12 @@ func (lbb *SLoadbalancerBackend) getVpc(ctx context.Context) (*SVpc, error) {
|
||||
theLbbJanitor.Signal()
|
||||
return nil, nil
|
||||
}
|
||||
return nil, errors.WithMessagef(err, "find guest %s", lbb.BackendId)
|
||||
return nil, errors.Wrapf(err, "find guest %s", lbb.BackendId)
|
||||
}
|
||||
guest := guestM.(*SGuest)
|
||||
vpc, err := guest.GetVpc()
|
||||
if err != nil {
|
||||
return nil, errors.WithMessagef(err, "find guest %s(%s) vpc", guest.Name, guest.Id)
|
||||
return nil, errors.Wrapf(err, "find guest %s(%s) vpc", guest.Name, guest.Id)
|
||||
}
|
||||
return vpc, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user