diff options
Diffstat (limited to 'internal/resource/link')
| -rw-r--r-- | internal/resource/link/link.go | 2 | ||||
| -rw-r--r-- | internal/resource/link/link_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/resource/link/link.go b/internal/resource/link/link.go index a5c5122..b40ce65 100644 --- a/internal/resource/link/link.go +++ b/internal/resource/link/link.go @@ -95,7 +95,7 @@ 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/link/link_test.go b/internal/resource/link/link_test.go index 862d5f7..170fbdd 100644 --- a/internal/resource/link/link_test.go +++ b/internal/resource/link/link_test.go @@ -183,7 +183,7 @@ func TestPresentAbsentSymlink(t *testing.T) { t.Fatal(err) } - Present(path, IsAbsent()) + Present(path, IsAbsent) if err := resource.Apply(); err != nil { t.Fatalf("Apply failed: %v", err) } |
