Skip to content

Instantly share code, notes, and snippets.

@jonnyshaw89
jonnyshaw89 / test
Created December 30, 2023 15:05
test
test
@jonnyshaw89
jonnyshaw89 / output.log
Created April 8, 2019 09:19
Debug output for google_redis_instance destroy
2019-04-08T10:00:56.969+0100 [DEBUG] plugin.terraform-provider-google_v2.3.0_x4: -----------------------------------------------------
2019-04-08T10:00:56.969+0100 [DEBUG] plugin.terraform-provider-google_v2.3.0_x4: 2019/04/08 10:00:56 [DEBUG] Google API Request Details:
2019-04-08T10:00:56.969+0100 [DEBUG] plugin.terraform-provider-google_v2.3.0_x4: ---[ REQUEST ]---------------------------------------
2019-04-08T10:00:56.969+0100 [DEBUG] plugin.terraform-provider-google_v2.3.0_x4: DELETE /v1/projects/my-project/locations/europe-west2/instances/memory-cache?alt=json HTTP/1.1
2019-04-08T10:00:56.969+0100 [DEBUG] plugin.terraform-provider-google_v2.3.0_x4: Host: redis.googleapis.com
2019-04-08T10:00:56.969+0100 [DEBUG] plugin.terraform-provider-google_v2.3.0_x4: User-Agent: Terraform/0.11.9 (+https://www.terraform.io) terraform-provider-google/2.3.0
2019-04-08T10:00:56.969+0100 [DEBUG] plugin.terraform-provider-google_v2.3.0_x4: Content-Type: application/json
2019-04-08T10:00:56.969+0100 [DEBUG] plugin.terrafo
import os
import simplejson as json
directory = "data/en"
for filename in os.listdir(directory):
if filename.endswith(".json"):
print(os.path.join(directory, filename))
with open(os.path.join(directory, filename), encoding='utf8') as json_data: