Merge pull request #8088 from carlpett/shorten-default-boot-key-interval

builder/proxmox: Shorten default boot_key_interval to 5ms from 100ms
This commit is contained in:
Adrien Delorme 2019-09-10 11:01:47 +02:00 committed by GitHub
commit b06f50fea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
c.RawBootKeyInterval = os.Getenv(common.PackerKeyEnv)
}
if c.RawBootKeyInterval == "" {
c.BootKeyInterval = common.PackerKeyDefault
c.BootKeyInterval = 5 * time.Millisecond
} else {
if interval, err := time.ParseDuration(c.RawBootKeyInterval); err == nil {
c.BootKeyInterval = interval