Go API: Resources.DiskMB does not populate when using event.Allocation() #15158
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/api
HTTP API and SDK issues
theme/events
Issues related to events
type/bug
Projects
Nomad version
1.2.12
Operating system and Environment details
Nomad running in Debian VM, go api client running on Ubuntu
Issue
The
DiskMB
value comes asnil
when running event.Allocation()Reproduction steps
with Nomad go api, listen to event stream
Seems an issue with the mapstructure or pointer (mostly)
nomad/api/resources.go
Line 14 in 499fceb
``
Expected Result
Value would be the same and not coming as
nil
when using event.Allocation()Actual Result
Value is always coming as
nil
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: