From 057094dd860e62cf0d3c80bf16bf169010059baf Mon Sep 17 00:00:00 2001 From: Raghavendra Nayak Date: Fri, 1 Sep 2023 00:35:06 -0400 Subject: [PATCH] fix: bitbucketserver_plugin resource refresh fails if plugin is disabled from Bitbucket UI --- bitbucket/resource_plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbucket/resource_plugin.go b/bitbucket/resource_plugin.go index e3d6012..5dce186 100644 --- a/bitbucket/resource_plugin.go +++ b/bitbucket/resource_plugin.go @@ -466,7 +466,7 @@ func resourcePluginExists(d *schema.ResourceData, m interface{}) (bool, error) { )) if err != nil { - return false, fmt.Errorf("failed to get plugin %s from bitbucket: %+v", key, err) + return false, nil } if req.StatusCode == 200 {