mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Lenovo cnos user module (#53763)
* Adding cnos_user module to Ansible * Update cnos_user.py * Adding Functional test cases and unit test cases. * Fixing Bug found in testing with Lenovo Mars. * Review comments incorporated * Review comments implemented. * Copy paste mistake
This commit is contained in:
parent
0ab28f314a
commit
8d742d9bff
12 changed files with 684 additions and 2 deletions
|
@ -50,6 +50,7 @@ from ansible.module_utils.connection import ConnectionError
|
|||
|
||||
_DEVICE_CONFIGS = {}
|
||||
_CONNECTION = None
|
||||
_VALID_USER_ROLES = ['network-admin', 'network-operator']
|
||||
|
||||
cnos_provider_spec = {
|
||||
'host': dict(),
|
||||
|
@ -88,6 +89,10 @@ def check_args(module, warnings):
|
|||
pass
|
||||
|
||||
|
||||
def get_user_roles():
|
||||
return _VALID_USER_ROLES
|
||||
|
||||
|
||||
def get_connection(module):
|
||||
global _CONNECTION
|
||||
if _CONNECTION:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue