Skip to content

Commit

Permalink
Add support for projectService param in trc scripts (#1133)
Browse files Browse the repository at this point in the history
* Add support for projectService param in trc scripts
  • Loading branch information
joel-rieke committed Jul 3, 2024
1 parent 697fa5f commit 851e4c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions atrium/vestibulum/trcshbase/trcsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ func ProcessDeploy(featherCtx *cap.FeatherContext,
fmt.Println("Trcsh - Failed to fetch template using projectServicePtr. " + err.Error())
return
}
trcshDriverConfig.DriverConfig.ServicesWanted = strings.Split(projectServicePtr, ",")
}

tokenName := "config_token_" + trcshDriverConfig.DriverConfig.EnvBasis
Expand Down
7 changes: 3 additions & 4 deletions pkg/cli/trcconfigbase/trcconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,8 @@ func CommonMain(envDefaultPtr *string,
}
}

services := []string{}
if *servicesWanted != "" {
services = strings.Split(*servicesWanted, ",")
driverConfigBase.ServicesWanted = strings.Split(*servicesWanted, ",")
}

regions := []string{}
Expand Down Expand Up @@ -438,7 +437,7 @@ func CommonMain(envDefaultPtr *string,
EnvBasis: eUtils.GetEnvBasis(*envPtr),
Regions: regions,
SecretMode: *secretMode,
ServicesWanted: services,
ServicesWanted: driverConfigBase.ServicesWanted,
StartDir: driverConfigBase.StartDir,
EndDir: driverConfigBase.EndDir,
WantKeystore: *keyStorePtr,
Expand Down Expand Up @@ -494,7 +493,7 @@ func CommonMain(envDefaultPtr *string,
EnvBasis: eUtils.GetEnvBasis(*envPtr),
Regions: regions,
SecretMode: *secretMode,
ServicesWanted: services,
ServicesWanted: driverConfigBase.ServicesWanted,
StartDir: driverConfigBase.StartDir,
EndDir: driverConfigBase.EndDir,
WantKeystore: *keyStorePtr,
Expand Down

0 comments on commit 851e4c2

Please sign in to comment.