1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Replace username for name in eos_user integration tests (#28067)

username param is read by eos action plugion load_provider, if present
it is set as the play context remote user.
That means if you have a play remote_user: admin it won't be used, but instead
whatever is put in the task argument username.
Changing the tests to use name fixes the issue, we may want to remove username
as valid module argument in other change.
This commit is contained in:
Ricardo Carrillo Cruz 2017-08-11 16:42:43 +02:00 committed by GitHub
parent 0e334ca821
commit a5b483da16

View file

@ -1,7 +1,7 @@
---
- name: Create user
eos_user:
username: netend
name: netend
privilege: 15
role: network-operator
state: present
@ -17,8 +17,8 @@
- name: Collection of users
eos_user:
aggregate:
- username: test1
- username: test2
- name: test1
- name: test2
authorize: yes
state: present
role: network-operator