From 35dae5791cd847f2bc8dde4f8f04944e0d574913 Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Mon, 22 Jul 2019 10:17:01 +0200 Subject: [PATCH] Use --input-file instead of --attrs. Signed-off-by: Stefan Scherer --- provisioner/inspec/provisioner.go | 2 +- website/source/docs/provisioners/inspec.html.md.erb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/provisioner/inspec/provisioner.go b/provisioner/inspec/provisioner.go index c90b66d49..4bc487a8e 100644 --- a/provisioner/inspec/provisioner.go +++ b/provisioner/inspec/provisioner.go @@ -342,7 +342,7 @@ func (p *Provisioner) executeInspec(ui packer.Ui, comm packer.Communicator, priv args = append(args, "--port", strconv.Itoa(p.config.LocalPort)) } - args = append(args, "--attrs") + args = append(args, "--input-file") args = append(args, p.config.AttributesFiles...) args = append(args, p.config.ExtraArguments...) diff --git a/website/source/docs/provisioners/inspec.html.md.erb b/website/source/docs/provisioners/inspec.html.md.erb index e315529ac..5c184b718 100644 --- a/website/source/docs/provisioners/inspec.html.md.erb +++ b/website/source/docs/provisioners/inspec.html.md.erb @@ -67,15 +67,15 @@ Optional Parameters: ``` - `attributes` (array of strings) - Attribute Files used by InSpec which will - be passed to the `--attrs` argument of the `inspec` command when this + be passed to the `--input-file` argument of the `inspec` command when this provisioner runs InSpec. Specify this if you want a different location. - Note using also `"--attrs"` in `extra_arguments` will override this + Note using also `"--input-file"` in `extra_arguments` will override this setting. - `attributes_directory` (string) - The directory in which to place the temporary generated InSpec Attributes file. By default, this is the system-specific temporary file location. The fully-qualified name of this - temporary file will be passed to the `--attrs` argument of the `inspec` + temporary file will be passed to the `--input-file` argument of the `inspec` command when this provisioner runs InSpec. Specify this if you want a different location.