summaryrefslogtreecommitdiff
path: root/internal/resource/file
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-06 23:56:32 +0300
committerPaul Buetow <paul@buetow.org>2026-07-06 23:56:32 +0300
commit62ff4e782bc057d277a7c41fa35a665e2aeca045 (patch)
tree5ca14104e68a9815f20ae6802c78341c6dc94371 /internal/resource/file
parent5600bedb927e291e2e78e6140de256e1a1d4475c (diff)
initial package management
Diffstat (limited to 'internal/resource/file')
-rw-r--r--internal/resource/file/file.go2
-rw-r--r--internal/resource/file/file_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/resource/file/file.go b/internal/resource/file/file.go
index 9d8a0d9..88b0bca 100644
--- a/internal/resource/file/file.go
+++ b/internal/resource/file/file.go
@@ -231,6 +231,6 @@ func Present(path string, opts ...opt.Option) resource.Resource {
}
func Absent(path string, opts ...opt.Option) resource.Resource {
- opts = append(opts, opt.IsAbsent())
+ opts = append(opts, opt.IsAbsent)
return Present(path, opts...)
}
diff --git a/internal/resource/file/file_test.go b/internal/resource/file/file_test.go
index b158657..3ae183c 100644
--- a/internal/resource/file/file_test.go
+++ b/internal/resource/file/file_test.go
@@ -194,7 +194,7 @@ func TestPresentAbsent(t *testing.T) {
t.Fatal(err)
}
- Present(path, IsAbsent())
+ Present(path, IsAbsent)
if err := resource.Apply(); err != nil {
t.Fatalf("Apply failed: %v", err)
}