From b42c7f4512ae450e1c5b662da54d4fe73197ab5e Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Mon, 17 Sep 2018 14:32:15 -0400 Subject: [PATCH] [iam_role] A hyphen with nothing following becomes [None] rather than []. Fix example syntax. (#45742) --- lib/ansible/modules/cloud/amazon/iam_role.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/iam_role.py b/lib/ansible/modules/cloud/amazon/iam_role.py index ab4d2b6031..296ef69608 100644 --- a/lib/ansible/modules/cloud/amazon/iam_role.py +++ b/lib/ansible/modules/cloud/amazon/iam_role.py @@ -87,8 +87,7 @@ EXAMPLES = ''' iam_role: name: mynewrole assume_role_policy_document: "{{ lookup('file','policy.json') }}" - managed_policy: - - + managed_policy: [] - name: Delete the role iam_role: