Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller Schedule: forks, timeout and limit can only be set if template is configured as "prompt on launch" #602

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions roles/schedules/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
credentials: "{{ __controller_schedule_item.credentials | default(omit, true) }}"
scm_branch: "{{ __controller_schedule_item.scm_branch | default(( '' if controller_configuration_schedules_enforce_defaults else omit), true) }}"
execution_environment: "{{ __controller_schedule_item.execution_environment.name | default(__controller_schedule_item.execution_environment | default(( '' if controller_configuration_schedules_enforce_defaults else omit), true)) }}"
forks: "{{ __controller_schedule_item.forks | default(( 0 if controller_configuration_schedules_enforce_defaults else omit), true) }}"
forks: "{{ __controller_schedule_item.forks | default(omit, true) }}"
instance_groups: "{{ __controller_schedule_item.instance_groups | default(omit, true) }}"
job_slice_count: "{{ __controller_schedule_item.job_slice_count | default(( 1 if controller_configuration_schedules_enforce_defaults else omit), true) }}"
labels: "{{ (__controller_schedule_item.related.labels | map(attribute='name') | list if __controller_schedule_item.related.labels is defined else '') | default(__controller_schedule_item.labels) | default(( [] if controller_configuration_schedules_enforce_defaults else omit), true) }}"
timeout: "{{ __controller_schedule_item.timeout | default(( 0 if controller_configuration_schedules_enforce_defaults else omit), true) }}"
timeout: "{{ __controller_schedule_item.timeout | default(omit, true) }}"
job_type: "{{ __controller_schedule_item.job_type | default(omit, true) }}"
job_tags: "{{ __controller_schedule_item.job_tags | default(( '' if controller_configuration_schedules_enforce_defaults else omit), true) }}"
skip_tags: "{{ __controller_schedule_item.skip_tags | default(( '' if controller_configuration_schedules_enforce_defaults else omit), true) }}"
limit: "{{ __controller_schedule_item.limit | default(( '' if controller_configuration_schedules_enforce_defaults else omit), true) }}"
limit: "{{ __controller_schedule_item.limit | default(omit, true) }}"
diff_mode: "{{ __controller_schedule_item.diff_mode | default(( false if controller_configuration_schedules_enforce_defaults else omit)) }}"
verbosity: "{{ __controller_schedule_item.verbosity | default(omit, true) }}"
organization: "{{ __controller_schedule_item.organization | default(( '' if controller_configuration_schedules_enforce_defaults else omit), true) }}"
Expand Down