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

ipa modules never updated to use 'name' attributes such as cn, uid, fqdn. This fixes. (#25851)

This commit is contained in:
Steve Jacobs 2017-08-30 13:36:42 -06:00 committed by ansibot
parent 70e20bb571
commit 374872cac4
8 changed files with 8 additions and 8 deletions

View file

@ -203,7 +203,7 @@ def get_group_diff(client, ipa_group, module_group):
def ensure(module, client):
state = module.params['state']
name = module.params['name']
name = module.params['cn']
group = module.params['group']
user = module.params['user']

View file

@ -234,7 +234,7 @@ def get_hbcarule_diff(client, ipa_hbcarule, module_hbcarule):
def ensure(module, client):
name = module.params['name']
name = module.params['cn']
state = module.params['state']
if state in ['present', 'enabled']:

View file

@ -215,7 +215,7 @@ def get_host_diff(client, ipa_host, module_host):
def ensure(module, client):
name = module.params['name']
name = module.params['fqdn']
state = module.params['state']
ipa_host = client.host_find(name=name)

View file

@ -163,7 +163,7 @@ def get_hostgroup_diff(client, ipa_hostgroup, module_hostgroup):
def ensure(module, client):
name = module.params['name']
name = module.params['cn']
state = module.params['state']
host = module.params['host']
hostgroup = module.params['hostgroup']

View file

@ -230,7 +230,7 @@ def get_role_diff(client, ipa_role, module_role):
def ensure(module, client):
state = module.params['state']
name = module.params['name']
name = module.params['cn']
group = module.params['group']
host = module.params['host']
hostgroup = module.params['hostgroup']

View file

@ -143,7 +143,7 @@ def get_sudocmdgroup_diff(client, ipa_sudocmdgroup, module_sudocmdgroup):
def ensure(module, client):
name = module.params['name']
name = module.params['cn']
state = module.params['state']
sudocmd = module.params['sudocmd']

View file

@ -251,7 +251,7 @@ def category_changed(module, client, category_name, ipa_sudorule):
def ensure(module, client):
state = module.params['state']
name = module.params['name']
name = module.params['cn']
cmd = module.params['cmd']
cmdcategory = module.params['cmdcategory']
host = module.params['host']

View file

@ -244,7 +244,7 @@ def get_ssh_key_fingerprint(ssh_key):
def ensure(module, client):
state = module.params['state']
name = module.params['name']
name = module.params['uid']
nsaccountlock = state == 'disabled'
module_user = get_user_dict(displayname=module.params.get('displayname'),