-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update scheduler.go Fix issue when containerID returns `/../..`, so that when it filters the returned string, it identifies containerID `..`, and then fails at the end, bc this is invalid container id * print out stdout/stderr to container logs * add changes suggested by @3timeslazy: This code fixes the case when the exec command fails (if command not found, for instance), but scheduler thinks it finished successfully * make logging opt in * use strconv to parse bool value of logsLabel * refactor execService: - use old approach with ContainerExecStart if logging disabled - use new approach with ContainerExecAttach if logging enabled * format with gofmt
- Loading branch information
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters