mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-07 06:02:09 +08:00
fix: remove apiversion param from session
This commit is contained in:
@@ -71,7 +71,6 @@ func NewWorker(commonOpts *common_options.CommonOptions, opts *agentoptions.Opti
|
||||
clientSet: agentssh.NewClientSet(),
|
||||
sessionCache: &auth.SessionCache{
|
||||
Region: commonOpts.Region,
|
||||
APIVersion: "v2",
|
||||
UseAdminToken: true,
|
||||
EarlyRefresh: time.Hour,
|
||||
},
|
||||
|
||||
@@ -154,7 +154,7 @@ func (proxyendpoint *SProxyEndpoint) remoteConfigure(ctx context.Context, userCr
|
||||
},
|
||||
}
|
||||
|
||||
cliSess := auth.GetSession(ctx, userCred, "", "")
|
||||
cliSess := auth.GetSession(ctx, userCred, "")
|
||||
pbId := ""
|
||||
pbName := "pe-remote-configure-" + proxyendpoint.Name
|
||||
_, err := ansible_modules.AnsiblePlaybooks.UpdateOrCreatePbModel(
|
||||
|
||||
@@ -60,7 +60,7 @@ func getServerInfo(
|
||||
userCred mcclient.TokenCredential,
|
||||
serverId string,
|
||||
) (*serverInfo, error) {
|
||||
sess := auth.GetSession(ctx, userCred, "", "")
|
||||
sess := auth.GetSession(ctx, userCred, "")
|
||||
serverJson, err := compute_modules.Servers.Get(sess, serverId, nil)
|
||||
if err != nil {
|
||||
return nil, httperrors.NewGeneralError(err)
|
||||
|
||||
Reference in New Issue
Block a user