Skip to content

Commit

Permalink
Cluster certificates correct return
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-gajda committed Apr 24, 2018
1 parent c1754bf commit b978c4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aws/resource_aws_cloudhsm2_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,5 +377,8 @@ func readCloudHsm2ClusterCertificates(cluster *cloudhsmv2.Cluster) []map[string]
certs["cluster_certificate"] = aws.StringValue(cluster.Certificates.ClusterCertificate)
}
}
return []map[string]interface{}{certs}
if len(certs) > 0 {
return []map[string]interface{}{certs}
}
return []map[string]interface{}{}
}

0 comments on commit b978c4b

Please sign in to comment.