coreos / fleet

fleet ties together systemd and etcd into a distributed init system
Apache License 2.0
2.42k stars 303 forks source link

agent: reenable check for nil hash in unit state publisher #1639

Closed dongsupark closed 7 years ago

dongsupark commented 7 years ago

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.

Fixes https://github.com/coreos/fleet/issues/989