Long time ago there were checks for nil unit hashes in agent.UnitStatePublisher.publishOne and registry.UnitStateToModel, but given that units could enter the system without populated hashes, the checks were disabled: 11949e0 ("agent: publish unit state regardless of hash").
However the hashes are now always populated, so the corresponding assertions should be reenabled.
Long time ago there were checks for nil unit hashes in
agent.UnitStatePublisher.publishOne
andregistry.UnitStateToModel
, but given that units could enter the system without populated hashes, the checks were disabled: 11949e0("agent: publish unit state regardless of hash")
.However the hashes are now always populated, so the corresponding assertions should be reenabled.
Fixes https://github.com/coreos/fleet/issues/989