GitOps: Allow team yml to apply display_name to software package (#38364)

This commit is contained in:
RachelElysia
2026-01-20 09:32:25 -05:00
committed by GitHub
parent c27d1b27a3
commit 136fadbbaf
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -230,6 +230,12 @@ func (spec SoftwarePackage) HydrateToPackageLevel(packageLevel fleet.SoftwarePac
packageLevel.InstallDuringSetup = spec.InstallDuringSetup
packageLevel.SelfService = spec.SelfService
// This will only override display name set at path: path/to/software.yml level
// if display_name is specified at the team level yml
if spec.DisplayName != "" {
packageLevel.DisplayName = spec.DisplayName
}
return packageLevel, nil
}