Merge pull request #1084 from wanyaoqi/bugfix/wyq/fix-esxi-encrypt

host: fix exsi encrypt base64
This commit is contained in:
yunion-ci-robot
2019-06-05 22:07:50 +08:00
committed by GitHub
+2 -2
View File
@@ -16,9 +16,9 @@ package fsdriver
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/utils"
"yunion.io/x/onecloud/pkg/cloudcommon/sshkeys"
"yunion.io/x/onecloud/pkg/util/seclib2"
)
type SEsxiRootFs struct {
@@ -56,7 +56,7 @@ func (m *SEsxiRootFs) GetOs() string {
}
func (m *SEsxiRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error) {
return seclib2.EncryptBase64(gid, "(blank)")
return utils.EncryptAESBase64(gid, "(blank)")
}
func (m *SEsxiRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error {