mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
Fix three trivial errors 'go vet' discovered.
This commit is contained in:
parent
febf27a48e
commit
2252b83d9a
@ -213,7 +213,7 @@ func resourceAwsS3BucketWebsitePut(s3conn *s3.S3, d *schema.ResourceData, websit
|
||||
WebsiteConfiguration: websiteConfiguration,
|
||||
}
|
||||
|
||||
log.Printf("[DEBUG] S3 put bucket website: %s", putInput)
|
||||
log.Printf("[DEBUG] S3 put bucket website: %#v", putInput)
|
||||
|
||||
_, err := s3conn.PutBucketWebsite(putInput)
|
||||
if err != nil {
|
||||
@ -227,7 +227,7 @@ func resourceAwsS3BucketWebsiteDelete(s3conn *s3.S3, d *schema.ResourceData) err
|
||||
bucket := d.Get("bucket").(string)
|
||||
deleteInput := &s3.DeleteBucketWebsiteInput{Bucket: aws.String(bucket)}
|
||||
|
||||
log.Printf("[DEBUG] S3 delete bucket website: %s", deleteInput)
|
||||
log.Printf("[DEBUG] S3 delete bucket website: %#v", deleteInput)
|
||||
|
||||
_, err := s3conn.DeleteBucketWebsite(deleteInput)
|
||||
if err != nil {
|
||||
|
@ -178,7 +178,7 @@ func graphDotFindOrigins(g *Graph) ([]dag.Vertex, error) {
|
||||
}
|
||||
|
||||
if len(origin) == 0 {
|
||||
return nil, fmt.Errorf("No DOT origin nodes found.\nGraph: %s", g)
|
||||
return nil, fmt.Errorf("No DOT origin nodes found.\nGraph: %s", g.String())
|
||||
}
|
||||
|
||||
return origin, nil
|
||||
|
Loading…
Reference in New Issue
Block a user