zstack using shell to init image password

This commit is contained in:
ioito
2019-07-02 20:39:07 +08:00
parent 14d31ab4c4
commit 3dea770f34
+4
View File
@@ -137,6 +137,10 @@ func (self *SZStackGuestDriver) IsNeedInjectPasswordByCloudInit(desc *cloudprovi
return true
}
func (self *SZStackGuestDriver) GetUserDataType() string {
return cloudprovider.CLOUD_SHELL
}
func (self *SZStackGuestDriver) GetLinuxDefaultAccount(desc cloudprovider.SManagedVMCreateConfig) string {
userName := "root"
if desc.ImageType == "system" && desc.OsType == "Windows" {