Skip to content

Commit

Permalink
fix: move log inside if
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekchaudhry committed Sep 27, 2021
1 parent f7c9be3 commit 56ce515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/api/task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -1538,8 +1538,8 @@ func (task *Task) overrideContainerRuntime(container *apicontainer.Container, ho
if task.NvidiaRuntime == "" {
return &apierrors.HostConfigError{Msg: "Runtime is not set for GPU containers"}
}
seelog.Debugf("Setting runtime as %s for container %s", task.NvidiaRuntime, container.Name)
if !cfg.External.Enabled() {
seelog.Debugf("Setting runtime as %s for container %s", task.NvidiaRuntime, container.Name)
hostCfg.Runtime = task.NvidiaRuntime
}
}
Expand Down

0 comments on commit 56ce515

Please sign in to comment.