ImportStatePassthrough requires ID only refresh capability.
Without this fix, the API request is incorrect (https://api.bitbucket.org/2.0/repositories//), the ID of the imported resource stored in the state is incorrect and fields are not correctly populated with actual state:
PS: the import command does not fail if the API resource does not exist because the read function does not fail in case of 404, it only tests for 200 to proceed. That probably also needs to be fixed.
ImportStatePassthrough requires ID only refresh capability.
Without this fix, the API request is incorrect (
https://api.bitbucket.org/2.0/repositories//
), the ID of the imported resource stored in the state is incorrect and fields are not correctly populated with actual state:With the fix, the resource is correctly read:
PS: the import command does not fail if the API resource does not exist because the read function does not fail in case of 404, it only tests for 200 to proceed. That probably also needs to be fixed.