Skip to content

Commit

Permalink
Remove unneeded code that sets reason for provision/update call failu…
Browse files Browse the repository at this point in the history
  • Loading branch information
staebler authored and arschles committed Nov 16, 2017
1 parent b122cb9 commit 4c51b25
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions pkg/controller/controller_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -858,16 +858,7 @@ func (c *controller) reconcileServiceInstance(instance *v1beta1.ServiceInstance)

urlErr, ok := err.(*url.Error)
if ok && urlErr.Timeout() {
var (
reason string
message string
)
if isProvisioning {
reason = errorErrorCallingProvisionReason
} else {
reason = errorErrorCallingUpdateInstanceReason
}
message = "Communication with the ClusterServiceBroker timed out; operation will not be retried: " + s
message := "Communication with the ClusterServiceBroker timed out; operation will not be retried: " + s
// Communication to the broker timed out. Treat as terminal failure and
// begin orphan mitigation.

Expand Down

0 comments on commit 4c51b25

Please sign in to comment.