mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
Merge pull request #9611 from bfournie/pxe-tmp-4.16
[release-4.16] OCPBUGS-54345: Remove tmp directory used for agent pxe files
This commit is contained in:
@@ -68,6 +68,8 @@ func (a *AgentPXEFiles) Generate(dependencies asset.Parents) error {
|
||||
|
||||
// PersistToFile writes the PXE assets in the assets folder named pxe.
|
||||
func (a *AgentPXEFiles) PersistToFile(directory string) error {
|
||||
defer os.RemoveAll(a.tmpPath)
|
||||
|
||||
// If the imageReader is not set then it means that either one of the AgentPXEFiles
|
||||
// dependencies or the asset itself failed for some reason
|
||||
if a.imageReader == nil {
|
||||
|
||||
Reference in New Issue
Block a user