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

pull/67498/head
Sloane Hertel 5 years ago committed by GitHub
parent 82ca00e4fe
commit b0abc1f5f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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):

Loading…
Cancel
Save