-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic in NewSystemd on nil values
NewSystemd previously panicked if it was given a nil resource value for resources.Memory.Max or resources.CPU.Weight (if resources.CPU or resources.Memory is non-nil) This also checks the value of Max and Weight before dereferencing them. Signed-off-by: Cameron Sparr <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
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