Skip to content

Commit

Permalink
Merge pull request #33 from jelmersnoeck/statuscake-empty-data-check
Browse files Browse the repository at this point in the history
Extra empty data check.
  • Loading branch information
jelmersnoeck authored Oct 29, 2018
2 parents 6837928 + 85585a3 commit f6d63ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/provider/statuscake/statuscake.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ func (c *Client) Update(id string, spec v1alpha1.MonitorTemplateSpec) (string, e
// We want to keep doing these calls to ensure that the monitor is how
// it should be configured in our specs.
return id, nil
} else if err != nil && err.Error() == fmt.Sprintf("No data has been updated (is any data different?)") {
// XXX see if we get a proper status code back for this kind of error,
// it's not really an error.
// We want to keep doing these calls to ensure that the monitor is how
// it should be configured in our specs.
return id, nil
}

if err != nil {
Expand Down

0 comments on commit f6d63ad

Please sign in to comment.