Skip to content

Commit 4c51b25

Browse files
staeblerarschles
authored andcommitted
Remove unneeded code that sets reason for provision/update call failure (openshift#1561)
1 parent b122cb9 commit 4c51b25

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Diff for: pkg/controller/controller_instance.go

+1-10
Original file line numberDiff line numberDiff line change
@@ -858,16 +858,7 @@ func (c *controller) reconcileServiceInstance(instance *v1beta1.ServiceInstance)
858858

859859
urlErr, ok := err.(*url.Error)
860860
if ok && urlErr.Timeout() {
861-
var (
862-
reason string
863-
message string
864-
)
865-
if isProvisioning {
866-
reason = errorErrorCallingProvisionReason
867-
} else {
868-
reason = errorErrorCallingUpdateInstanceReason
869-
}
870-
message = "Communication with the ClusterServiceBroker timed out; operation will not be retried: " + s
861+
message := "Communication with the ClusterServiceBroker timed out; operation will not be retried: " + s
871862
// Communication to the broker timed out. Treat as terminal failure and
872863
// begin orphan mitigation.
873864

0 commit comments

Comments
 (0)