provider/aws: Breaking change - Trim off quotes for aws_s3_bucket_object.etag
This commit is contained in:
parent
79281c2502
commit
70f045e46e
|
@ -6,6 +6,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/hashicorp/terraform/helper/schema"
|
"github.com/hashicorp/terraform/helper/schema"
|
||||||
"github.com/mitchellh/go-homedir"
|
"github.com/mitchellh/go-homedir"
|
||||||
|
@ -144,7 +145,9 @@ func resourceAwsS3BucketObjectPut(d *schema.ResourceData, meta interface{}) erro
|
||||||
return fmt.Errorf("Error putting object in S3 bucket (%s): %s", bucket, err)
|
return fmt.Errorf("Error putting object in S3 bucket (%s): %s", bucket, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
d.Set("etag", resp.ETag)
|
// See https://forums.aws.amazon.com/thread.jspa?threadID=44003
|
||||||
|
d.Set("etag", strings.Trim(*resp.ETag, `"`))
|
||||||
|
|
||||||
d.SetId(key)
|
d.SetId(key)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue