Fix bug in iam_role - _list_policies was not returning anything (#67495)

This commit is contained in:
Sloane Hertel 2020-02-17 15:43:26 -05:00 committed by GitHub
parent 82ca00e4fe
commit b0abc1f5f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,7 +224,7 @@ def compare_assume_role_policy_doc(current_policy_doc, new_policy_doc):
@AWSRetry.jittered_backoff()
def _list_policies(connection):
paginator = connection.get_paginator('list_policies')
policies = paginator.paginate().build_full_result()['Policies']
return paginator.paginate().build_full_result()['Policies']
def convert_friendly_names_to_arns(connection, module, policy_names):