fix aiven_database resource importing
Fixes
resourceDatabaseRead() did not fill the project and service_name
resulting in partial import which then later triggered recreation
of the database.
Previously imported database resources having this issue will have
to be removed from the state and reimported.
@@ -103,6 +103,8 @@ func resourceDatabaseRead(d *schema.ResourceData, m interface{}) error {
}
d.Set("database_name", database.DatabaseName)
+ d.Set("project", projectName)
+ d.Set("service_name", serviceName)
d.Set("lc_collate", database.LcCollate)
d.Set("lc_ctype", database.LcType)
