From d120e1a38a06d90bc7d133eedfd0d50b6d42f2dc Mon Sep 17 00:00:00 2001 From: clint shryock Date: Wed, 2 Nov 2016 16:23:39 -0500 Subject: [PATCH] provider/aws: Fix TestAccAWSAPIGatewayDomainName_basic test --- builtin/providers/aws/resource_aws_api_gateway_domain_name.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_api_gateway_domain_name.go b/builtin/providers/aws/resource_aws_api_gateway_domain_name.go index a2b88e99c..72e99c108 100644 --- a/builtin/providers/aws/resource_aws_api_gateway_domain_name.go +++ b/builtin/providers/aws/resource_aws_api_gateway_domain_name.go @@ -105,7 +105,9 @@ func resourceAwsApiGatewayDomainNameRead(d *schema.ResourceData, meta interface{ } d.Set("certificate_name", domainName.CertificateName) - d.Set("certificate_upload_date", domainName.CertificateUploadDate) + if err := d.Set("certificate_upload_date", domainName.CertificateUploadDate.Format(time.RFC3339)); err != nil { + log.Printf("[DEBUG] Error setting certificate_upload_date: %s", err) + } d.Set("cloudfront_domain_name", domainName.DistributionDomainName) d.Set("domain_name", domainName.DomainName)