-
Notifications
You must be signed in to change notification settings - Fork 107
'404 pipelines_config Not found' when importing bitbucket_repository without Pipelines enabled #58
Comments
Just ran into this. Appears to be an issue with the bitbucket API, not the terraform provider? Initial API response using
After manually enabling pipelines:
After manually disabling pipelines:
It appears the API simply returns a |
Possibly, but it's essentially a bug in the Terraform provider as it breaks importing - so needs a workaround to possibly ignore the error when pipelines aren't enabled. |
Just encountered the same error when renaming a repository which has no pipeline and I guess the same will happen if you change any other attribute. This makes this provider unusable if you don't use pipelines. Temporary fix is to pin the provider to 1.1, then everything works fine but you'll be missing a few features (see change log for more info). I'm not familiar with go but it looks like that the provider should capture the 404 error and treat it as that the pipelines are disabled. |
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
Terraform should have imported
my-repo
without errors.Actual Behavior
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform import bitbucket_repository.my_repo my-team/my-repo
Important Factoids
The text was updated successfully, but these errors were encountered: