mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
fix(region): aliyun vnc addr (#23883)
This commit is contained in:
Vendored
+1
-1
@@ -2243,7 +2243,7 @@ sigs.k8s.io/structured-merge-diff/v4/value
|
||||
# sigs.k8s.io/yaml v1.2.0
|
||||
## explicit; go 1.12
|
||||
sigs.k8s.io/yaml
|
||||
# yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20251130090640-988b91734be4
|
||||
# yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20251202110347-66e60ae88e4f
|
||||
## explicit; go 1.24
|
||||
yunion.io/x/cloudmux/pkg/apis
|
||||
yunion.io/x/cloudmux/pkg/apis/billing
|
||||
|
||||
-7
@@ -29,7 +29,6 @@ import (
|
||||
"yunion.io/x/pkg/util/billing"
|
||||
"yunion.io/x/pkg/util/imagetools"
|
||||
"yunion.io/x/pkg/util/osprofile"
|
||||
"yunion.io/x/pkg/util/seclib"
|
||||
"yunion.io/x/pkg/utils"
|
||||
|
||||
billing_api "yunion.io/x/cloudmux/pkg/apis/billing"
|
||||
@@ -444,14 +443,8 @@ func (self *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudpr
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
passwd := seclib.RandomPassword(6)
|
||||
err = self.host.zone.region.ModifyInstanceVNCUrlPassword(self.InstanceId, passwd)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &cloudprovider.ServerVncOutput{
|
||||
Url: url,
|
||||
Password: passwd,
|
||||
Protocol: "aliyun",
|
||||
InstanceId: self.InstanceId,
|
||||
Hypervisor: api.HYPERVISOR_ALIYUN,
|
||||
|
||||
Reference in New Issue
Block a user