Skip to content

Commit

Permalink
Merge pull request #9 from operable/vanstee/include-services-root
Browse files Browse the repository at this point in the history
Include COG_SERVICES_ROOT in command env
  • Loading branch information
vanstee committed May 5, 2016
2 parents 0991718 + f18c7d7 commit 0a733e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions relay/engines/env_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func BuildEnvironment(request messages.ExecutionRequest, relayConfig config.Conf
vars["COG_CHAT_HANDLE"] = request.Requestor.Handle
vars["COG_PIPELINE_ID"] = request.PipelineID()
vars["COG_SERVICE_TOKEN"] = request.ServiceToken
vars["COG_SERVICES_ROOT"] = request.ServicesRoot
vars["COG_INVOCATION_ID"] = request.InvocationID

if request.InvocationStep != "" {
Expand Down
1 change: 1 addition & 0 deletions relay/messages/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type ExecutionRequest struct {
Requestor ChatUser `json:"requestor"`
User CogUser `json:"user"`
ServiceToken string `json:"service_token"`
ServicesRoot string `json:"services_root"`
bundleName string
commandName string
pipelineID string
Expand Down

0 comments on commit 0a733e3

Please sign in to comment.