Skip to content

Commit

Permalink
Merge pull request #127 from sidorovdmitry/DS_fix_replication_policy
Browse files Browse the repository at this point in the history
fix: recreate missing replication policy
  • Loading branch information
wrighbr authored Jun 18, 2021
2 parents 34bf1cf + c062358 commit aa8bba0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions provider/resource_replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ func resourceReplicationRead(d *schema.ResourceData, m interface{}) error {
apiClient := m.(*client.Client)

resp, _, err := apiClient.SendRequest("GET", d.Id(), nil, 200)
if err != nil {
d.SetId("")
return nil
}

var jsonData models.RegistryBody
err = json.Unmarshal([]byte(resp), &jsonData)
Expand Down

0 comments on commit aa8bba0

Please sign in to comment.