Fix bug in iam_role - _list_policies was not returning anything (#67495)
This commit is contained in:
parent
82ca00e4fe
commit
b0abc1f5f6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue