logzio / terraform-provider-logzio

Terraform provider for logz.io alerts, endpoints and users
Apache License 2.0
19 stars 17 forks source link

Catch error when reading archive settings #113

Closed mirii1994 closed 2 years ago

mirii1994 commented 2 years ago

At the moment - when trying to import archive settings that don't exist - the plugin crashes. This happens due to the fact that the Read function for that resource is missing a line that checks if the api returned an error. This PR fixes that bug.