mirror of
https://github.com/andreicscs/HoneyWire
synced 2026-06-26 12:39:53 +00:00
fixed node GenerateRevisionHash, return "" on node with no sensors
This commit is contained in:
@@ -242,6 +242,9 @@ func (s *Service) evaluateNodeSyncState(nodeID string) {
|
||||
}
|
||||
|
||||
func GenerateRevisionHash(sensors []models.NodeSensor, catSvc *catalog.Service, currentHubVersion string) string {
|
||||
if len(sensors) == 0 {
|
||||
return ""
|
||||
}
|
||||
type sensorConfig struct {
|
||||
ID string
|
||||
Version string
|
||||
|
||||
Reference in New Issue
Block a user