mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
Merge pull request #7231 from hashicorp/b-alloc-dev-panic
api: fix panic when displaying devices w/o stat
This commit is contained in:
@@ -8,6 +8,7 @@ IMPROVEMENTS:
|
||||
BUG FIXES:
|
||||
|
||||
* api: Fixed a panic when canonicalizing a jobspec with an incorrect job type [[GH-7207]](https://github.com/hashicorp/nomad/pull/7207)
|
||||
* cli: Fixed a panic when displaying device plugins without stats [[GH-7231](https://github.com/hashicorp/nomad/issues/7231)]
|
||||
|
||||
## 0.10.4 (February 19, 2020)
|
||||
|
||||
|
||||
@@ -676,6 +676,8 @@ type StatValue struct {
|
||||
|
||||
func (v *StatValue) String() string {
|
||||
switch {
|
||||
case v == nil:
|
||||
return "<none>"
|
||||
case v.BoolVal != nil:
|
||||
return strconv.FormatBool(*v.BoolVal)
|
||||
case v.StringVal != nil:
|
||||
|
||||
Reference in New Issue
Block a user