summaryrefslogtreecommitdiff
path: root/internal/resource/pkg/dnf.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/resource/pkg/dnf.go')
-rw-r--r--internal/resource/pkg/dnf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/resource/pkg/dnf.go b/internal/resource/pkg/dnf.go
index e970b10..34f0a5d 100644
--- a/internal/resource/pkg/dnf.go
+++ b/internal/resource/pkg/dnf.go
@@ -9,7 +9,7 @@ import (
func applyDNF(p *Package) error {
var args []string
- if p.absent {
+ if p.Absent {
args = []string{"remove", "-y", p.name}
} else if p.latest {
// update ensures the package is installed and updated to the latest version.