Skip to content

Instantly share code, notes, and snippets.

@mubeta06
mubeta06 / genfun.py
Created October 25, 2019 00:15
Fun with Generators
"""A hack to play around with generator acknowledgement."""
def extract():
for i in xrange(10):
ack = yield i
print('acking %d' % ack)
def transform(ext):
package derp
import (
"fmt"
"io/ioutil"
"log"
"os"
"testing"
"github.com/hashicorp/terraform/helper/acctest"
@mubeta06
mubeta06 / gist:26efc01903938d591ca37cbf39d6cd25
Created August 16, 2017 22:41
Debug Output - Standalone Acceptance Testing - Internal validation of the provider failed!
=== RUN TestAccAWSS3BucketObject_sse
--- FAIL: TestAccAWSS3BucketObject_sse (9.93s)
testing.go:435: Step 0 error: Configuration is invalid.
Warnings: []string(nil)
Errors: []string{"provider.aws: Internal validation of the provider failed! This is always a bug\nwith the provider itself, and not a user issue. Please report\nthis bug:\n\n24 error(s) occurred:\n\n* resource aws_opsworks_rails_app_layer: id is a reserved field name for a resource\n* resource aws_opsworks_memcached_layer: id is a reserved field name for a resource\n* resource aws_opsworks_php_app_layer: id is a reserved field name for a resource\n* resource aws_ami: id is a reserved field name for a resource\n* resource aws_opsworks_nodejs_app_layer: id is a reserved field name for a resource\n* resource aws_opsworks_stack: id is a reserved field name for a resource\n* resource aws_opsworks_haproxy_layer: id is a reserved field name for a resource\n* resource aws_opsworks_static_web_layer: id is a reserved field name for a resource\n*