Skip to content

Commit

Permalink
made sure that the replication_policy_id is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
wrighbr committed Feb 22, 2021
1 parent 54c1a0f commit 52cf5f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion provider/resource_replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func resourceReplication() *schema.Resource {
Required: true,
},
"replication_policy_id": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
"dest_namespace": {
Expand Down Expand Up @@ -119,6 +119,7 @@ func resourceReplicationRead(d *schema.ResourceData, m interface{}) error {
return fmt.Errorf("Resource not found %s", d.Id())
}

d.Set("replication_policy_id", jsonData.ID)
return nil
}

Expand Down

0 comments on commit 52cf5f0

Please sign in to comment.