Actually use the collectionArgs, that would be helpful
This commit is contained in:
parent
41a8a96821
commit
611899f7b2
|
@ -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 != "" {
|
||||
roleArgs = append(roleArgs, "-p", filepath.ToSlash(p.config.CollectionsPath))
|
||||
collectionArgs = append(roleArgs, "-p", filepath.ToSlash(p.config.CollectionsPath))
|
||||
}
|
||||
|
||||
roleInstallError := p.invokeGalaxyCommand(roleArgs, ui, comm)
|
||||
|
@ -655,7 +655,7 @@ func (p *Provisioner) executeGalaxy(ui packer.Ui, comm packer.Communicator) erro
|
|||
}
|
||||
// If all is well, proceed with collection install
|
||||
// This variable isn't strictly necessary but including for readability to match the role installation
|
||||
collectionInstallError := p.invokeGalaxyCommand(roleArgs, ui, comm)
|
||||
collectionInstallError := p.invokeGalaxyCommand(collectionArgs, ui, comm)
|
||||
return collectionInstallError
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue