Skip to content

Commit

Permalink
Make feathering optional. (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-rieke authored Jan 24, 2024
1 parent d53c583 commit 135d8c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions atrium/vestibulum/trcflow/deploy/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ func PluginDeployEnvFlow(pluginConfig map[string]interface{}, logger *log.Logger
return err
}

if ok, err := servercapauth.ValidatePathSha(goMod, pluginConfig, logger); true || ok {
if ok, err := servercapauth.ValidatePathSha(goMod, pluginConfig, logger); ok {
// Only start up if trcsh is up to date....
onceAuth.Do(func() {
if pluginConfig["env"].(string) == "dev" || pluginConfig["env"].(string) == "staging" {
// Ensure only dev is the cap auth...
Expand All @@ -82,9 +83,10 @@ func PluginDeployEnvFlow(pluginConfig map[string]interface{}, logger *log.Logger

servercapauth.Memorize(pluginConfig, logger)

// TODO: Support variables for different environments...
// Not really clear how cap auth would do this...
go servercapauth.Start(featherAuth, pluginConfig["env"].(string), logger)
if featherAuth != nil {
go servercapauth.Start(featherAuth, pluginConfig["env"].(string), logger)
}
logger.Printf("Cap auth init complete for env: %s\n", pluginConfig["env"].(string))
gCapInitted = true
}
Expand Down

0 comments on commit 135d8c0

Please sign in to comment.