Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not iterable #89

Open
ali0818 opened this issue Nov 23, 2021 · 0 comments
Open

TypeError: 'NoneType' object is not iterable #89

ali0818 opened this issue Nov 23, 2021 · 0 comments

Comments

@ali0818
Copy link

ali0818 commented Nov 23, 2021

version: 0.1.52

Traceback (most recent call last):
  File "/app/./airapi/main.py", line 270, in <module>

Process data error
    marker()
  File "/app/./airapi/main.py", line 260, in marker

Process data error
    run_recommend_groups(runtime_report, raw_data, logger, args)
  File "/app/./airapi/main.py", line 107, in run_recommend_groups

Process data error
    report_with_recommendations = recommend_groups(
  File "/usr/lib/python3.9/site-packages/airiam/recommend_groups/recommend_groups.py", line 19, in recommend_groups
    runtime_iam_report.set_reorg(organizer.get_user_clusters(runtime_iam_report))
Process data error

  File "/usr/lib/python3.9/site-packages/airiam/recommend_groups/recommend_groups.py", line 38, in get_user_clusters
    simple_user_clusters = self._create_simple_user_clusters(human_users, iam_data['AccountGroups'], iam_data['AccountPolicies'])
  File "/usr/lib/python3.9/site-packages/airiam/recommend_groups/recommend_groups.py", line 84, in _create_simple_user_clusters

Process data error
    if PolicyAnalyzer.policy_is_write_access(policy_document):
  File "/usr/lib/python3.9/site-packages/airiam/find_unused/PolicyAnalyzer.py", line 55, in policy_is_write_access

Process data error
    action_objs = list(filter(lambda privilege_obj: re.match(action_regex, privilege_obj['privilege']),
TypeError: 'NoneType' object is not iterable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant