Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug middleware #7

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Add debug middleware #7

merged 1 commit into from
Aug 21, 2024

Conversation

stuart-mclaren-hpe
Copy link
Contributor

When enabled, this will produce output such as:

->TX

POST /virtualization/v1beta1/datastores HTTP/1.1
Host: localhost:8080
User-Agent: Go-http-client/1.1
Transfer-Encoding: chunked
Accept: application/json
Authorization: Bearer abcdefghijklmnopqrstuvwxyz-0123456789
Content-Type: application/json
Accept-Encoding: gzip

{"name":"foo-ds19","sizeInBytes":17179869184,"storageSystemId":"127fd201-9e6e-5e31-9ffb-a766265b1fd3","targetHypervisorClusterId":"","volumeInfo":{"deduplication":false,"encryption":{"cipher":"None"},"qos":{"iopsLimit":-1,"mbpsLimit":-1}},"datastoreType":"VMFS"}

to stdout when running terraform.

When enabled, this will produce output such as:

```
->TX

POST /virtualization/v1beta1/datastores HTTP/1.1
Host: localhost:8080
User-Agent: Go-http-client/1.1
Transfer-Encoding: chunked
Accept: application/json
Authorization: Bearer abcdefghijklmnopqrstuvwxyz-0123456789
Content-Type: application/json
Accept-Encoding: gzip

{"name":"foo-ds19","sizeInBytes":17179869184,"storageSystemId":"127fd201-9e6e-5e31-9ffb-a766265b1fd3","targetHypervisorClusterId":"","volumeInfo":{"deduplication":false,"encryption":{"cipher":"None"},"qos":{"iopsLimit":-1,"mbpsLimit":-1}},"datastoreType":"VMFS"}

```

to stdout when running terraform.
@stuart-mclaren-hpe stuart-mclaren-hpe merged commit 4cd9cb3 into main Aug 21, 2024
4 checks passed
@stuart-mclaren-hpe stuart-mclaren-hpe deleted the debug branch August 21, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants