Get basic environment creation beginning to work

This commit is contained in:
Dane Everitt
2019-04-03 22:01:11 -07:00
parent 639d9edef5
commit 08af485c40
8 changed files with 180 additions and 116 deletions

View File

@@ -44,6 +44,11 @@ func main() {
for _, s := range servers {
zap.S().Infow("loaded configuration for server", zap.String("server", s.Uuid))
zap.S().Infow("ensuring envrionment exists", zap.String("server", s.Uuid))
if err := s.CreateEnvironment(); err != nil {
zap.S().Errorw("failed to create an environment for server", zap.String("server", s.Uuid), zap.Error(err))
}
}
}