From 85585a3447086125a9620a887c807dcefce51607 Mon Sep 17 00:00:00 2001 From: Jelmer Snoeck Date: Mon, 29 Oct 2018 11:42:56 +0100 Subject: [PATCH] Extra empty data check. --- internal/provider/statuscake/statuscake.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/provider/statuscake/statuscake.go b/internal/provider/statuscake/statuscake.go index bb29dc9..c40a7bf 100644 --- a/internal/provider/statuscake/statuscake.go +++ b/internal/provider/statuscake/statuscake.go @@ -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 {