From 956f49f439de1572f82f06941bb5220d67a82b94 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 6 Dec 2013 19:30:06 -0800 Subject: [PATCH] provisioner/puppet-masterless: check for hiera config path [GH-656] --- CHANGELOG.md | 2 ++ provisioner/puppet-masterless/provisioner.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d4d57961..370782cf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ BUG FIXES: get stuck with ISO. [GH-685] * builder/vmware: File cleanup is more resilient to file delete races with the operating system. [GH-675] +* provisioner/puppet-masterless: Check for hiera config path existence + properly. [GH-656] ## 0.4.0 (November 19, 2013) diff --git a/provisioner/puppet-masterless/provisioner.go b/provisioner/puppet-masterless/provisioner.go index 4552aef9a..05c9163cd 100644 --- a/provisioner/puppet-masterless/provisioner.go +++ b/provisioner/puppet-masterless/provisioner.go @@ -145,7 +145,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error { // Validation if p.config.HieraConfigPath != "" { - info, err := os.Stat(p.config.ManifestFile) + info, err := os.Stat(p.config.HieraConfigPath) if err != nil { errs = packer.MultiErrorAppend(errs, fmt.Errorf("hiera_config_path is invalid: %s", err))