From 6c7aa724eb1da5c740957a5bea02541a0f298022 Mon Sep 17 00:00:00 2001 From: localghost Date: Wed, 16 May 2018 22:43:30 +0200 Subject: [PATCH] Fix tests after merging with master. --- provisioner/ansible-local/provisioner_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/provisioner/ansible-local/provisioner_test.go b/provisioner/ansible-local/provisioner_test.go index 6eddd2736..4370b060c 100644 --- a/provisioner/ansible-local/provisioner_test.go +++ b/provisioner/ansible-local/provisioner_test.go @@ -102,6 +102,7 @@ func TestProvisionerPrepare_PlaybookFiles(t *testing.T) { t.Fatal("should have error") } + p = Provisioner{} config["playbook_file"] = playbook_file.Name() config["playbook_files"] = []string{} err = p.Prepare(config) @@ -417,11 +418,10 @@ func testProvisionerProvisionDockerWithPlaybookFiles(t *testing.T, templateStrin hooks := map[string][]packer.Hook{} hooks[packer.HookProvision] = []packer.Hook{ &packer.ProvisionHook{ - Provisioners: []packer.Provisioner{ - ansible, - download, + Provisioners: []*packer.HookedProvisioner{ + {ansible, nil, ""}, + {download, nil, ""}, }, - ProvisionerTypes: []string{tpl.Provisioners[0].Type, tpl.Provisioners[1].Type}, }, } hook := &packer.DispatchHook{Mapping: hooks}