From 92704b693a9a107be5919bccfd2b29b37e7eaaca Mon Sep 17 00:00:00 2001 From: Emil Hessman Date: Tue, 16 Dec 2014 07:14:19 +0100 Subject: [PATCH] provisioner/puppet-masterless: fix missing format argument Fixes the following vet report: provisioner/puppet-masterless/provisioner.go:196: missing argument for Errorf(%d): format reads arg 1, have only 0 args --- provisioner/puppet-masterless/provisioner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/puppet-masterless/provisioner.go b/provisioner/puppet-masterless/provisioner.go index 307ecce38..efb5e53e2 100644 --- a/provisioner/puppet-masterless/provisioner.go +++ b/provisioner/puppet-masterless/provisioner.go @@ -190,7 +190,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error { fmt.Errorf("module_path[%d] is invalid: %s", i, err)) } else if !info.IsDir() { errs = packer.MultiErrorAppend(errs, - fmt.Errorf("module_path[%d] must point to a directory")) + fmt.Errorf("module_path[%d] must point to a directory", i)) } }