num_sync_threads set to 0 when api_workers set to 0
Bug #1436916 reported by
Matt Thompson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Matt Thompson |
Bug Description
We derive num_sync_threads from api_workers (num_sync_threads = {{ neutron_api_workers | default(
Changed in openstack-ansible: | |
status: | New → In Progress |
assignee: | nobody → Matt Thompson (mattt416) |
Changed in openstack-ansible: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
we can use a ternary operator to solve this. This should pseudo code should work but is untested:
num_sync_threads = {{ neutron_api_workers | default(api_threads if api_threads > 0 else 1) }}