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:
parent
39183d1b76
commit
4ecade3908
|
@ -645,7 +645,7 @@ func (p *Provisioner) executeGalaxy(ui packer.Ui, comm packer.Communicator) erro
|
||||||
}
|
}
|
||||||
// Add collections_path argument if specified
|
// Add collections_path argument if specified
|
||||||
if p.config.CollectionsPath != "" {
|
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)
|
roleInstallError := p.invokeGalaxyCommand(roleArgs, ui, comm)
|
||||||
|
|
Loading…
Reference in New Issue