From 4ecade39086294979e195b52679fbcb5009c3eae Mon Sep 17 00:00:00 2001 From: Artis3n Date: Sat, 5 Sep 2020 18:42:40 -0400 Subject: [PATCH] collectionsPath appends to the correct slice Fixes what would have been a failure if roles+collections were tested at once --- provisioner/ansible/provisioner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/ansible/provisioner.go b/provisioner/ansible/provisioner.go index 53cfd63ff..c6d0d6f1c 100644 --- a/provisioner/ansible/provisioner.go +++ b/provisioner/ansible/provisioner.go @@ -645,7 +645,7 @@ func (p *Provisioner) executeGalaxy(ui packer.Ui, comm packer.Communicator) erro } // Add collections_path argument if specified if p.config.CollectionsPath != "" { - collectionArgs = append(roleArgs, "-p", filepath.ToSlash(p.config.CollectionsPath)) + collectionArgs = append(collectionArgs, "-p", filepath.ToSlash(p.config.CollectionsPath)) } roleInstallError := p.invokeGalaxyCommand(roleArgs, ui, comm)