Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: Add more nil checking to service pretty-printer
Currently, if the service mode is not "global", this code assumes that Replicated is non-nil. This assumption may not be true in the future. Instead of making the assumption, explicitly check that Replicated is non-nil before using it. Similarly, for limits and reservations, enclose methods that read from Limits and Reservations within checks that those fields are non-nil. Signed-off-by: Aaron Lehmann <[email protected]>
- Loading branch information