Skip to content

Commit

Permalink
Changed the way of writing template and creating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
parauliya committed May 5, 2020
1 parent f6097d2 commit c07a8d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grpc-server/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ func createYaml(ctx context.Context, sqlDB *sql.DB, temp string, tar string) (st

func renderTemplate(tempData string, tarData []byte) (string, error) {
type Target struct {
Hardware map[string]string `json:hardware`
Hardware map[string]interface{}
}
var target Target

err := json.Unmarshal(tarData, &target)
target := Target{}
err := json.Unmarshal(tarData, &(target.Hardware))
if err != nil {
logger.Error(err)
return "", nil
Expand Down

0 comments on commit c07a8d3

Please sign in to comment.