Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
no filter will be empty string (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfaulkner committed Jun 25, 2022
1 parent 5ce3540 commit 2c39ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/resource_cloudflare_logpush_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func getJobFromResource(d *schema.ResourceData) (cloudflare.LogpushJob, *AccessI
}

filter := d.Get("filter")
if filter != nil {
if filter != "" {
var jobFilter cloudflare.LogpushJobFilters
if err := json.Unmarshal([]byte(filter.(string)), &jobFilter); err != nil {
return cloudflare.LogpushJob{}, identifier, err
Expand Down

0 comments on commit 2c39ff1

Please sign in to comment.