Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions pkg/asset/machines/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,11 @@ func (m *Master) Generate(dependencies asset.Parents) error {

// Files returns the files generated by the asset.
func (m *Master) Files() []*asset.File {
files := make([]*asset.File, 0, 1+len(m.MachineConfigFiles)+len(m.MachineFiles))
files := make([]*asset.File, 0, 1+len(m.MachineConfigFiles))
if m.UserDataFile != nil {
files = append(files, m.UserDataFile)
}
files = append(files, m.MachineConfigFiles...)
files = append(files, m.MachineFiles...)
return files
}

Expand All @@ -226,12 +225,6 @@ func (m *Master) Load(f asset.FileFetcher) (found bool, err error) {
return true, err
}

fileList, err := f.FetchByPattern(filepath.Join(directory, masterMachineFileNamePattern))
if err != nil {
return true, err
}

m.MachineFiles = fileList
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break loading the asset from disk. The MachineFiles will be empty when the asset is loaded from disk.

return true, nil
}

Expand Down