You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units/executor
Brian Coca 4fa512406b
loop_control "early exit" feature (#62151)
* add a loop_control break_when directive to break out of a loop after any item

* remove loop var as normal exit would

* example usage:

- name: generate a random password up to 10 times, until it matches the policy
  set_fact:
    password: "{{ lookup('password', '/dev/null', chars=character_set, length=length) }}"
  loop: "{{ range(0, 10) }}"
  loop_control:
    break_when:
      - password is match(password_policy)

Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
3 months ago
..
module_common Remove extraneous pylint ignore (#83257) 6 months ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
test_interpreter_discovery.py Updates to interpreter discovery for 2.17 (#82420) 9 months ago
test_play_iterator.py Typo fixes and other bits and bobs (#83672) 4 months ago
test_playbook_executor.py Remove Python 2.x compat from unit tests (#82109) 1 year ago
test_task_executor.py loop_control "early exit" feature (#62151) 3 months ago
test_task_queue_manager_callbacks.py Remove Python 2.x compat from unit tests (#82109) 1 year ago
test_task_result.py Typo fixes and other bits and bobs (#83672) 4 months ago