mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Add detail_update_time in createDevHosts (#315)
This commit is contained in:
parent
beda051de2
commit
4100eea2a8
1 changed files with 22 additions and 20 deletions
42
cli/serve.go
42
cli/serve.go
|
|
@ -212,28 +212,30 @@ func createDevUsers(ds kolide.Datastore, config config.KolideConfig) {
|
||||||
func createDevHosts(ds kolide.Datastore, config config.KolideConfig) {
|
func createDevHosts(ds kolide.Datastore, config config.KolideConfig) {
|
||||||
hosts := []kolide.Host{
|
hosts := []kolide.Host{
|
||||||
{
|
{
|
||||||
NodeKey: "totally-legit",
|
NodeKey: "totally-legit",
|
||||||
HostName: "jmeller-mbp.local",
|
HostName: "jmeller-mbp.local",
|
||||||
UUID: "1234-5678-9101",
|
UUID: "1234-5678-9101",
|
||||||
Platform: "darwin",
|
Platform: "darwin",
|
||||||
OsqueryVersion: "2.0.0",
|
OsqueryVersion: "2.0.0",
|
||||||
OSVersion: "Mac OS X 10.11.6",
|
OSVersion: "Mac OS X 10.11.6",
|
||||||
Uptime: 60 * time.Minute,
|
Uptime: 60 * time.Minute,
|
||||||
PhysicalMemory: 4145483776,
|
PhysicalMemory: 4145483776,
|
||||||
PrimaryMAC: "10:11:12:13:14:15",
|
PrimaryMAC: "10:11:12:13:14:15",
|
||||||
PrimaryIP: "192.168.1.10",
|
PrimaryIP: "192.168.1.10",
|
||||||
|
DetailUpdateTime: time.Now(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
NodeKey: "definitely-legit",
|
NodeKey: "definitely-legit",
|
||||||
HostName: "marpaia.local",
|
HostName: "marpaia.local",
|
||||||
UUID: "1234-5678-9102",
|
UUID: "1234-5678-9102",
|
||||||
Platform: "windows",
|
Platform: "windows",
|
||||||
OsqueryVersion: "2.0.0",
|
OsqueryVersion: "2.0.0",
|
||||||
OSVersion: "Windows 10.0.0",
|
OSVersion: "Windows 10.0.0",
|
||||||
Uptime: 60 * time.Minute,
|
Uptime: 60 * time.Minute,
|
||||||
PhysicalMemory: 17179869184,
|
PhysicalMemory: 17179869184,
|
||||||
PrimaryMAC: "10:11:12:13:14:16",
|
PrimaryMAC: "10:11:12:13:14:16",
|
||||||
PrimaryIP: "192.168.1.11",
|
PrimaryIP: "192.168.1.11",
|
||||||
|
DetailUpdateTime: time.Now(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue