packer/command/test-fixtures/hcl
Lucas Bajolet 4d559e23b7
hcl2: don't warn on excluded post-processor (#12187)
* hcl2template: use && for chaining conditions

For deciding if we need to run an error provisioner block, we checked
using a nested if that we didn't need to avoid running it.

This is unnecessary, and adds a superfluous level of inbrication to the
code, so we chain both conditions with &&.

* hcl2: don't warn on excluded post-processor

When a post-processor is excluded through the -except command-line
argument for packer build, we used to print a warning on HCL2 templates
if this except statement did not match a build.

However, since we can use the except option to avoid running
post-processors, we should account for this as well when printing out a
warning that there were no matches.

This commit adds this counter to the except checks for the
post-processors as well.
2023-01-11 14:30:02 -05:00
..
dynamic Allow to have dynamic blocks in a build block + tests (#10825) 2021-03-30 15:53:04 +02:00
empty_object Sanitize var code (#11566) 2022-02-14 11:00:41 -05:00
inspect HCL2: allow calling env as input var default value (#10240) 2020-11-11 11:27:32 +01:00
recipes add language coment ! 2020-07-07 11:43:13 +02:00
recursive_local_with_input Sanitize var code (#11566) 2022-02-14 11:00:41 -05:00
recursive_local_with_unset_input Sanitize var code (#11566) 2022-02-14 11:00:41 -05:00
reprepare core: Decode: when in HCL2 decoding mode; reset the whole struct before preparing it. (#9622) 2020-07-23 09:25:07 +02:00
validation command/build: warn and exit when nothing to build 2022-09-13 15:58:28 -04:00
variables hcl2: add example for undefined variable set warn 2022-09-28 14:51:28 -04:00
build-var-in-pp.pkr.hcl Allow to use build variables in a post processor (#11323) 2021-10-11 10:17:34 -04:00
build_no_source.pkr.hcl hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
data-source-validation.pkr.hcl all shells: Pass env vars through a key value store (#11569) 2022-02-16 12:05:44 +01:00
datasource.pkr.hcl (2) Implement datasources (#10440) 2021-01-20 10:37:16 +01:00
force.pkr.hcl Fix force flag for hcl2 provisioners and post-processors (#10571) 2021-02-05 10:57:14 +01:00
local-ds-validate.pkr.hcl command/validate: add option to eval datasources 2022-11-17 09:29:55 -05:00
nil-component-crash.pkr.hcl HCL2: fix a crash when an HCL2 component is nil after a misconfiguration (#11382) 2021-11-04 10:08:27 -04:00
no_build.pkr.hcl build: exit immediately if no builds and diags 2022-09-23 12:07:32 -04:00
provisioner-override.pkr.hcl add tests and update override example 2020-08-14 11:22:51 +02:00
test_except_manifest.pkr.hcl hcl2: don't warn on excluded post-processor (#12187) 2023-01-11 14:30:02 -05:00
var-in-pp-name.pkr.hcl add possibility to use variables everywhere in post-processor blocks (#11094) 2021-06-15 18:29:26 +02:00
vars-in-build-block.pkr.hcl Add support for variable interpolation to hcp_packer_registry and build blocks. (#11421) 2021-12-01 11:35:51 +01:00