Skip to content

Commit

Permalink
Merge pull request openshift#911 from hardys/issues/891
Browse files Browse the repository at this point in the history
OpenStack Destroy, tolerate temporary router delete failure
  • Loading branch information
openshift-merge-robot authored Dec 14, 2018
2 parents 3b9d99b + fb73b45 commit 14505f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/destroy/openstack/openstack_deprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ func deleteRouters(opts *clientconfig.ClientOpts, filter Filter, logger logrus.F
logger.Debugf("Deleting Router: %+v\n", router.ID)
err = routers.Delete(conn, router.ID).ExtractErr()
if err != nil {
logger.Fatalf("%v", err)
os.Exit(1)
// This can fail when port is still in use
return false, nil
}
}
return len(allRouters) == 0, nil
Expand Down

0 comments on commit 14505f3

Please sign in to comment.