Skip to content

Commit

Permalink
Add default cloud-init-paths to build commands
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
  • Loading branch information
frelon committed Dec 22, 2023
1 parent 3590bbb commit 710b3d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/types/v1/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,8 @@ type BuildConfig struct {
// Sanitize checks the consistency of the struct, returns error
// if unsolvable inconsistencies are found
func (b *BuildConfig) Sanitize() error {
// Always include default cloud-init paths
b.CloudInitPaths = append(constants.GetCloudInitPaths(), b.CloudInitPaths...)
return b.Config.Sanitize()
}

Expand Down

0 comments on commit 710b3d8

Please sign in to comment.