Skip to content

Commit 0a15b17

Browse files
committed
Refactor updateIgnitionContent()
1 parent 2e71f74 commit 0a15b17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/asset/agent/image/agentimage.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ func (a *AgentImage) updateIgnitionContent(agentArtifacts *AgentArtifacts) error
125125
return err
126126
}
127127

128+
return a.overwriteFileData(fileInfo)
129+
}
130+
131+
func (a *AgentImage) overwriteFileData(fileInfo []isoeditor.FileData) error {
128132
for _, fileData := range fileInfo {
129133
filename := filepath.Join(a.tmpPath, fileData.Filename)
130134
file, err := os.Create(filename)

0 commit comments

Comments
 (0)