Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Merge branch 'explicit-kernel-mgnt' into DONOTMERGE2
Browse files Browse the repository at this point in the history
  • Loading branch information
eliobischof committed Oct 14, 2021
2 parents e25f8da + 5969015 commit 50b6b6e
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ func softwareContains(this common.Software, that common.Software) bool {
contains(this.Nginx, that.Nginx) &&
contains(this.Hostname, that.Hostname) &&
sysctl.Contains(this.Sysctl, that.Sysctl) &&
contains(this.Health, that.Health)
contains(this.Health, that.Health) &&
contains(this.Kernel, that.Kernel)
}

func contains(this, that common.Package) bool {
Expand All @@ -243,11 +244,11 @@ func softwareDefines(this common.Software, that common.Software) bool {
defines(this.Nginx, that.Nginx) &&
defines(this.Hostname, that.Hostname) &&
defines(this.Sysctl, that.Sysctl) &&
defines(this.Health, that.Health)
defines(this.Health, that.Health) &&
defines(this.Kernel, that.Kernel)
}

func defines(this, that common.Package) bool {
zeroPkg := common.Package{}
defines := common.PackageEquals(that, zeroPkg) || !common.PackageEquals(this, zeroPkg)
return defines
return common.PackageEquals(that, zeroPkg) || !common.PackageEquals(this, zeroPkg)
}

0 comments on commit 50b6b6e

Please # to comment.