Skip to content

Commit

Permalink
fix: 修复zstack使用win镜像时userdata base64加密问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Qu Xuan committed May 19, 2020
1 parent d4217ff commit f162ac4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/compute/guestdrivers/zstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ func (self *SZStackGuestDriver) GetUserDataType() string {
return cloudprovider.CLOUD_SHELL
}

func (self *SZStackGuestDriver) IsWindowsUserDataTypeNeedEncode() bool {
return true
}

func (self *SZStackGuestDriver) GetLinuxDefaultAccount(desc cloudprovider.SManagedVMCreateConfig) string {
userName := "root"
if desc.OsType == "Windows" {
Expand Down

0 comments on commit f162ac4

Please sign in to comment.