mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-20 10:22:22 +08:00
fix: remove apiversion param from session
This commit is contained in:
@@ -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