upgrade pause_before (#10654)
This commit is contained in:
parent
ab89df9a88
commit
37d05c85ff
|
@ -981,6 +981,9 @@ func writeProvisioner(typeName string, provisioner *template.Provisioner) []byte
|
|||
if provisioner.Timeout > 0 {
|
||||
cfg["timeout"] = provisioner.Timeout.String()
|
||||
}
|
||||
if provisioner.PauseBefore > 0 {
|
||||
cfg["pause_before"] = provisioner.PauseBefore.String()
|
||||
}
|
||||
body.AppendNewline()
|
||||
jsonBodyToHCL2Body(block.Body(), cfg)
|
||||
return provisionerContent.Bytes()
|
||||
|
|
|
@ -241,9 +241,10 @@ build {
|
|||
}
|
||||
|
||||
provisioner "shell-local" {
|
||||
inline = ["sleep 100000"]
|
||||
only = ["amazon-ebs"]
|
||||
timeout = "5s"
|
||||
inline = ["sleep 100000"]
|
||||
only = ["amazon-ebs"]
|
||||
pause_before = "5s"
|
||||
timeout = "5s"
|
||||
}
|
||||
|
||||
post-processor "amazon-import" {
|
||||
|
|
|
@ -189,6 +189,7 @@
|
|||
"amazon-ebs"
|
||||
],
|
||||
"timeout": "5s",
|
||||
"pause_before": "5s",
|
||||
"inline": [
|
||||
"sleep 100000"
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue