mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
allow groups parameter to be noticed as an empty list (#22707)
make iam.py pep8 remove iam.py from pep8 legacy files
This commit is contained in:
parent
c80d696cec
commit
a4552c11b3
2 changed files with 5 additions and 4 deletions
|
@ -55,7 +55,8 @@ options:
|
||||||
choices: [ "present", "absent", "update" ]
|
choices: [ "present", "absent", "update" ]
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
- When creating or updating, specify the desired path of the resource. If state is present, it will replace the current path to match what is passed in when they do not match.
|
- When creating or updating, specify the desired path of the resource. If state is present,
|
||||||
|
it will replace the current path to match what is passed in when they do not match.
|
||||||
required: false
|
required: false
|
||||||
default: "/"
|
default: "/"
|
||||||
trust_policy:
|
trust_policy:
|
||||||
|
@ -101,7 +102,8 @@ options:
|
||||||
description:
|
description:
|
||||||
- C(always) will update passwords if they differ. C(on_create) will only set the password for newly created users.
|
- C(always) will update passwords if they differ. C(on_create) will only set the password for newly created users.
|
||||||
notes:
|
notes:
|
||||||
- 'Currently boto does not support the removal of Managed Policies, the module will error out if your user/group/role has managed policies when you try to do state=absent. They will need to be removed manually.'
|
- 'Currently boto does not support the removal of Managed Policies, the module will error out if your
|
||||||
|
user/group/role has managed policies when you try to do state=absent. They will need to be removed manually.'
|
||||||
author:
|
author:
|
||||||
- "Jonathan I. Davila (@defionscode)"
|
- "Jonathan I. Davila (@defionscode)"
|
||||||
- "Paul Seiffert (@seiffert)"
|
- "Paul Seiffert (@seiffert)"
|
||||||
|
@ -701,7 +703,7 @@ def main():
|
||||||
if name_change and new_name:
|
if name_change and new_name:
|
||||||
orig_name = name
|
orig_name = name
|
||||||
name = new_name
|
name = new_name
|
||||||
if groups:
|
if isinstance(groups, list):
|
||||||
user_groups, groups_changed = set_users_groups(
|
user_groups, groups_changed = set_users_groups(
|
||||||
module, iam, name, groups, been_updated, new_name)
|
module, iam, name, groups, been_updated, new_name)
|
||||||
if groups_changed == user_changed:
|
if groups_changed == user_changed:
|
||||||
|
|
|
@ -47,7 +47,6 @@ lib/ansible/modules/cloud/amazon/ecs_service.py
|
||||||
lib/ansible/modules/cloud/amazon/ecs_service_facts.py
|
lib/ansible/modules/cloud/amazon/ecs_service_facts.py
|
||||||
lib/ansible/modules/cloud/amazon/ecs_taskdefinition.py
|
lib/ansible/modules/cloud/amazon/ecs_taskdefinition.py
|
||||||
lib/ansible/modules/cloud/amazon/elasticache.py
|
lib/ansible/modules/cloud/amazon/elasticache.py
|
||||||
lib/ansible/modules/cloud/amazon/iam.py
|
|
||||||
lib/ansible/modules/cloud/amazon/iam_cert.py
|
lib/ansible/modules/cloud/amazon/iam_cert.py
|
||||||
lib/ansible/modules/cloud/amazon/iam_policy.py
|
lib/ansible/modules/cloud/amazon/iam_policy.py
|
||||||
lib/ansible/modules/cloud/amazon/iam_role.py
|
lib/ansible/modules/cloud/amazon/iam_role.py
|
||||||
|
|
Loading…
Reference in a new issue