Skip to content

Commit

Permalink
ADD dump AssembleTemplateWithVariable.
Browse files Browse the repository at this point in the history
  • Loading branch information
karminski committed Jan 10, 2024
1 parent 997e693 commit 5573933
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/actionruntime/restapi/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,12 @@ func (r *RESTAPIConnector) Run(resourceOptions map[string]interface{}, actionOpt

b := r.Action.ReflectBodyToRaw()
var errInAssembleBodyContent error
fmt.Printf("[DUMP] b.Content pre: %+v\n", b.Content)
b.Content, errInAssembleBodyContent = parser_template.AssembleTemplateWithVariable(b.Content, r.Action.Context)
fmt.Printf("[DUMP] b.Content: %+v\n", b.Content)
fmt.Printf("[DUMP] r.Action.Context: %+v\n", r.Action.Context)
fmt.Printf("[DUMP] errInAssembleBodyContent: %+v\n", errInAssembleBodyContent)

if errInAssembleBodyContent != nil {
return res, errInAssembleBodyContent
}
Expand Down

0 comments on commit 5573933

Please sign in to comment.