Skip to content

Commit

Permalink
Fix cluster deletion (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
outcatcher committed Jun 9, 2020
1 parent cf79f34 commit e685ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ func (c *client) waitForCluster(clusterID string) error {
func (c *client) waitForClusterDelete(clusterID string) error {
return golangsdk.WaitFor(600, func() (bool, error) {
_, err := c.getClusterStatus(clusterID)
if err != nil {
return false, err
if err == nil {
return false, nil
}
switch err.(type) {
case golangsdk.ErrDefault404:
Expand Down

0 comments on commit e685ac2

Please sign in to comment.