@@ -1578,7 +1578,6 @@ func resourceVdbRead(ctx context.Context, d *schema.ResourceData, meta interface
15781578 d .Set ("parent_id" , result .GetParentId ())
15791579 d .Set ("parent_dsource_id" , result .GetParentDsourceId ())
15801580 d .Set ("root_parent_id" , result .GetRootParentId ())
1581- d .Set ("source_data_id" , result .GetParentId ())
15821581 d .Set ("group_name" , result .GetGroupName ())
15831582 d .Set ("creation_date" , result .GetCreationDate ().String ())
15841583 d .Set ("instance_name" , result .GetInstanceName ())
@@ -1594,6 +1593,11 @@ func resourceVdbRead(ctx context.Context, d *schema.ResourceData, meta interface
15941593 d .Set ("pre_rollback" , flattenHooks (result .GetHooks ().PreRollback ))
15951594 d .Set ("post_rollback" , flattenHooks (result .GetHooks ().PostRollback ))
15961595 d .Set ("database_name" , result .GetDatabaseName ())
1596+ _ , is_provision := d .GetOk ("provision_type" )
1597+ if ! is_provision {
1598+ // its an import, set to default value
1599+ d .Set ("provision_type" , "snapshot" )
1600+ }
15971601
15981602 d .Set ("jdbc_connection_string" , result .GetJdbcConnectionString ())
15991603 d .Set ("cdb_id" , result .GetCdbId ())
0 commit comments