Skip to content

Commit

Permalink
there’s another error returned for idempotent changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
aidansteele committed May 16, 2019
1 parent 6e9076d commit 8b67e2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/stackit/changeset/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type NoOpChangesetError struct{}

const errNoOp = "The submitted information didn't contain changes. Submit different information to create a change set."
const errNoOp2 = "No updates are to be performed."

func (e *NoOpChangesetError) Error() string {
return errNoOp
Expand Down Expand Up @@ -37,7 +38,7 @@ func Wait(api cloudformationiface.CloudFormationAPI, id string) (*cloudformation
}

if status == "FAILED" {
if reason == errNoOp {
if reason == errNoOp || reason == errNoOp2 {
return resp, &NoOpChangesetError{}
} else {
return nil, errors.New(reason)
Expand Down

0 comments on commit 8b67e2d

Please sign in to comment.