Adding default time logic for windows clones
This commit is contained in:
parent
f04298f78d
commit
0b97c0a6f4
|
@ -1275,6 +1275,9 @@ func (vm *virtualMachine) deployVirtualMachine(c *govmomi.Client) error {
|
||||||
var identity_options types.BaseCustomizationIdentitySettings
|
var identity_options types.BaseCustomizationIdentitySettings
|
||||||
if strings.HasPrefix(template_mo.Config.GuestId, "win") {
|
if strings.HasPrefix(template_mo.Config.GuestId, "win") {
|
||||||
var timeZone int
|
var timeZone int
|
||||||
|
if vm.timeZone == "Etc/UTC" {
|
||||||
|
vm.timeZone = "085"
|
||||||
|
}
|
||||||
timeZone, err := strconv.Atoi(vm.timeZone)
|
timeZone, err := strconv.Atoi(vm.timeZone)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Error converting TimeZone: %s", err)
|
return fmt.Errorf("Error converting TimeZone: %s", err)
|
||||||
|
|
Loading…
Reference in New Issue