mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Fix consul_token usage without accessor_id. (#8091)
* Fix consul_token usage without accessor_id. * Update changelogs/fragments/8091-consul-token-fixes.yaml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/consul_token.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
226207522e
commit
67736d796a
4 changed files with 20 additions and 1 deletions
|
@ -14,6 +14,17 @@
|
|||
- foo-access
|
||||
- foo-access2
|
||||
|
||||
- name: Create token without accessor
|
||||
community.general.consul_token:
|
||||
state: present
|
||||
register: simple_create_result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- simple_create_result is changed
|
||||
- simple_create_result.token.AccessorID
|
||||
- simple_create_result.operation == 'create'
|
||||
|
||||
- name: Create token
|
||||
community.general.consul_token:
|
||||
state: present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue