Skip to content

Commit

Permalink
Added description of issue
Browse files Browse the repository at this point in the history
  • Loading branch information
markotting committed Nov 4, 2024
1 parent 72b7c2e commit fe790d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rundeck/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ type JobOption struct {
ValueChoicesURL string `xml:"valuesUrl,attr,omitempty"`

// URL value choices can be configured
JobValueChoicesURL JobValueChoicesURL `xml:"valuesUrlConfig,omitempty"`
JobValueChoicesURL JobValueChoicesURL `xml:"configRemoteUrl,omitempty"`

// Description of the value to be shown in the Rundeck UI.
Description string `xml:"description,omitempty"`
Expand Down
3 changes: 2 additions & 1 deletion rundeck/resource_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ func jobFromResourceData(d *schema.ResourceData) (*JobDetail, error) {
ValueChoices: JobValueChoices([]string{}),
ValueChoicesURL: optionMap["value_choices_url"].(string),
// Mark: This should be a map[string]string of sorts to be able to parse the subset of URL options
// and should reference
// and should reference. Right now this compiles, but fails on runtime because the schema
// expects this to be a map, not an object (I think)
JobValueChoicesURL: JobValueChoicesURL{},
RequirePredefinedChoice: optionMap["require_predefined_choice"].(bool),
ValidationRegex: optionMap["validation_regex"].(string),
Expand Down

0 comments on commit fe790d0

Please sign in to comment.