Unverified Commit 2e0d67cb authored by Mahmood Ali's avatar Mahmood Ali Committed by GitHub
Browse files

Merge pull request #6065 from hashicorp/b-nil-driver-exec

Check if driver handle is nil before execing
parents 9ef22a48 488cd7e2
Showing with 6 additions and 1 deletion
+6 -1
......@@ -1361,7 +1361,12 @@ func appendTaskEvent(state *structs.TaskState, event *structs.TaskEvent, capacit
}
func (tr *TaskRunner) TaskExecHandler() drivermanager.TaskExecHandler {
return tr.getDriverHandle().ExecStreaming
// Check it is running
handle := tr.getDriverHandle()
if handle == nil {
return nil
}
return handle.ExecStreaming
}
func (tr *TaskRunner) DriverCapabilities() (*drivers.Capabilities, error) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment