From 47c7c872fc40e115c169aadc77d6ddadae8d27c4 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 24 Nov 2019 21:18:51 -0800 Subject: [PATCH] Don't track the process state in the yaml --- server/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index a0667de..3941026 100644 --- a/server/server.go +++ b/server/server.go @@ -29,7 +29,7 @@ type Server struct { Suspended bool `json:"suspended"` // The power state of the server. - State string `json:"state"` + State string `json:"state" yaml:"-"` // The command that should be used when booting up the server instance. Invocation string `json:"invocation"` @@ -224,6 +224,7 @@ func FromConfiguration(data []byte, cfg *config.SystemConfiguration) (*Server, e return nil, err } + s.State = ProcessOfflineState s.Environment = env s.Cache = cache.New(time.Minute*10, time.Minute*15) s.Filesystem = &Filesystem{