provider/aws: Fix TestAccAWSAPIGatewayDomainName_basic test

This commit is contained in:
clint shryock 2016-11-02 16:23:39 -05:00
parent 1658055bfd
commit d120e1a38a
1 changed files with 3 additions and 1 deletions

View File

@ -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)