mirror of https://github.com/hashicorp/packer
Merge pull request #8475 from hashicorp/fix_8472
Return exit code 1 when builder type is not foundpull/8481/head
commit
8073a5381c
@ -0,0 +1,41 @@
|
||||
{
|
||||
"builders": [
|
||||
{
|
||||
"name": "chocolate",
|
||||
"type": "file",
|
||||
"content": "chocolate",
|
||||
"target": "chocolate.txt"
|
||||
},
|
||||
{
|
||||
"name": "vanilla",
|
||||
"type": "non-existing",
|
||||
"content": "vanilla",
|
||||
"target": "vanilla.txt"
|
||||
}
|
||||
],
|
||||
"post-processors": [
|
||||
[
|
||||
{
|
||||
"only": [
|
||||
"vanilla"
|
||||
],
|
||||
"name": "tomato",
|
||||
"type": "shell-local",
|
||||
"inline": [
|
||||
"echo tomato > tomato.txt"
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"only": [
|
||||
"chocolate"
|
||||
],
|
||||
"type": "shell-local",
|
||||
"inline": [
|
||||
"echo unnamed > unnamed.txt"
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
Loading…
Reference in new issue