Skip to content

Commit

Permalink
test: instance: increase retries for state=absent (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
resmo authored Feb 20, 2024
1 parent fdb473e commit d6885f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/doc_fragments/vultr_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class ModuleDocFragment(object):
default: 180
api_retries:
description:
- Amount of retries in case of the Vultr API retuns an HTTP 503 code.
- Amount of retries in case of the Vultr API retuns an HTTP error code, such as
- 429 Too Many Requests
- 500 Internal Server Error
- 504 Gateway Time-out
- Fallback environment variable C(VULTR_API_RETRIES).
type: int
default: 5
Expand Down
1 change: 1 addition & 0 deletions tests/integration/targets/instance/tasks/absent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
label: "{{ instance.label }}"
region: "{{ instance.region }}"
state: absent
api_retries: 20
register: result
- name: verify test absent instance
ansible.builtin.assert:
Expand Down

0 comments on commit d6885f8

Please sign in to comment.