From 4100eea2a855c8ae801eb80f4420fee064db5cf1 Mon Sep 17 00:00:00 2001 From: Zachary Wasserman Date: Fri, 14 Oct 2016 15:32:55 -0700 Subject: [PATCH] Add detail_update_time in createDevHosts (#315) --- cli/serve.go | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/cli/serve.go b/cli/serve.go index d633f03cc7..4240feacf0 100644 --- a/cli/serve.go +++ b/cli/serve.go @@ -212,28 +212,30 @@ func createDevUsers(ds kolide.Datastore, config config.KolideConfig) { func createDevHosts(ds kolide.Datastore, config config.KolideConfig) { hosts := []kolide.Host{ { - NodeKey: "totally-legit", - HostName: "jmeller-mbp.local", - UUID: "1234-5678-9101", - Platform: "darwin", - OsqueryVersion: "2.0.0", - OSVersion: "Mac OS X 10.11.6", - Uptime: 60 * time.Minute, - PhysicalMemory: 4145483776, - PrimaryMAC: "10:11:12:13:14:15", - PrimaryIP: "192.168.1.10", + NodeKey: "totally-legit", + HostName: "jmeller-mbp.local", + UUID: "1234-5678-9101", + Platform: "darwin", + OsqueryVersion: "2.0.0", + OSVersion: "Mac OS X 10.11.6", + Uptime: 60 * time.Minute, + PhysicalMemory: 4145483776, + PrimaryMAC: "10:11:12:13:14:15", + PrimaryIP: "192.168.1.10", + DetailUpdateTime: time.Now(), }, { - NodeKey: "definitely-legit", - HostName: "marpaia.local", - UUID: "1234-5678-9102", - Platform: "windows", - OsqueryVersion: "2.0.0", - OSVersion: "Windows 10.0.0", - Uptime: 60 * time.Minute, - PhysicalMemory: 17179869184, - PrimaryMAC: "10:11:12:13:14:16", - PrimaryIP: "192.168.1.11", + NodeKey: "definitely-legit", + HostName: "marpaia.local", + UUID: "1234-5678-9102", + Platform: "windows", + OsqueryVersion: "2.0.0", + OSVersion: "Windows 10.0.0", + Uptime: 60 * time.Minute, + PhysicalMemory: 17179869184, + PrimaryMAC: "10:11:12:13:14:16", + PrimaryIP: "192.168.1.11", + DetailUpdateTime: time.Now(), }, }