Commit f985f247 authored by lukasburgey's avatar lukasburgey
Browse files

Add questionnaire_answers to the replies

parent 56a3fad0
Pipeline #85379 passed with stages
in 1 minute and 42 seconds
...@@ -52,6 +52,11 @@ type ( ...@@ -52,6 +52,11 @@ type (
// Maps a question name to a description of the question // Maps a question name to a description of the question
Questionnaire map[string]string `json:"questionnaire,omitempty"` Questionnaire map[string]string `json:"questionnaire,omitempty"`
// Questionnaire requested by the script
// Ignored when State is not Questionnaire
// Maps a question name to a description of the question
QuestionnaireAnswers map[string]interface{} `json:"questionnaire_answers,omitempty"`
// Credentials for the user // Credentials for the user
// Ignored when State is not Deployed // Ignored when State is not Deployed
// Maps a credential name to a credential value // Maps a credential name to a credential value
......
...@@ -213,6 +213,7 @@ func (sink *Sink) depHandler() { ...@@ -213,6 +213,7 @@ func (sink *Sink) depHandler() {
} }
if output.Questionnaire != nil && output.State == scripts.Questionnaire { if output.Questionnaire != nil && output.State == scripts.Questionnaire {
reply.Questionnaire = output.Questionnaire reply.Questionnaire = output.Questionnaire
reply.QuestionnaireAnswers = output.QuestionnaireAnswers
} }
if output.Credentials != nil && output.State == scripts.Deployed { if output.Credentials != nil && output.State == scripts.Deployed {
reply.Credentials = output.Credentials reply.Credentials = output.Credentials
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment