From 72a7a5e69c349f6f679134257aefea76323ca93a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 9 Aug 2013 17:01:10 -0700 Subject: [PATCH] provisioner/salt-masterless: don't delete states [GH-265] --- CHANGELOG.md | 5 +++++ provisioner/salt-masterless/provisioner.go | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3803c611f..9b814d9ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,11 @@ FEATURES: * The `amazon` builders (all of them) can now have attributes of their resulting AMIs modified, such as access permissions and product codes. +BUG FIXES: + +* provisioner/salt-masterless: states aren't deleted after the run + anymore. [GH-265] + ## 0.2.3 (August 7, 2013) IMPROVEMENTS: diff --git a/provisioner/salt-masterless/provisioner.go b/provisioner/salt-masterless/provisioner.go index 76a520278..530a38914 100644 --- a/provisioner/salt-masterless/provisioner.go +++ b/provisioner/salt-masterless/provisioner.go @@ -120,12 +120,6 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error { return fmt.Errorf("Error executing highstate: %s", err) } - ui.Message("Removing /srv/salt") - cmd = &packer.RemoteCmd{Command: "sudo rm -r /srv/salt"} - if err = cmd.StartWithUi(comm, ui); err != nil { - return fmt.Errorf("Unable to remove /srv/salt: %d", err) - } - return nil }