From 3efc70837b239d996d784f884b62bb4fecb7bd3e Mon Sep 17 00:00:00 2001 From: Lyubo Kamenov Date: Fri, 26 May 2023 23:07:48 -0400 Subject: [PATCH] Check for missing deployment --- cmd/meroxa/root/apps/deploy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/meroxa/root/apps/deploy.go b/cmd/meroxa/root/apps/deploy.go index 015bfeb6e..186a5af73 100644 --- a/cmd/meroxa/root/apps/deploy.go +++ b/cmd/meroxa/root/apps/deploy.go @@ -782,6 +782,9 @@ func (d *Deploy) appModified(ctx context.Context) (bool, error) { latest, err := d.client.GetLatestDeployment(ctx, app.Name) if err != nil { + if strings.Contains(err.Error(), "could not find deployment") { + return true, nil + } return false, err }