feat(alias): pass task alias to remote runner

This commit is contained in:
Denis Gukov 2024-12-16 20:27:42 +05:00
parent 3c3da0bacb
commit aecff7892e
No known key found for this signature in database
GPG Key ID: 044381366A5D4731
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ func GetRunner(w http.ResponseWriter, r *http.Request) {
data.NewJobs = append(data.NewJobs, runners.JobData{
Username: tsk.Username,
IncomingVersion: tsk.IncomingVersion,
Alias: tsk.Alias,
Task: tsk.Task,
Template: tsk.Template,
Inventory: tsk.Inventory,

View File

@ -11,6 +11,7 @@ import (
type JobData struct {
Username string
IncomingVersion *string
Alias string
Task db.Task `json:"task" binding:"required"`
Template db.Template `json:"template" binding:"required"`
Inventory db.Inventory `json:"inventory" binding:"required"`