collectionsPath appends to the correct slice

Fixes what would have been a failure if roles+collections were tested at
once
This commit is contained in:
Artis3n 2020-09-05 18:42:40 -04:00
parent 39183d1b76
commit 4ecade3908
1 changed files with 1 additions and 1 deletions

View File

@ -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)