Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cfme/tests/containers/test_projects_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_api_object_counts(appliance, project_name, provider):
}


def flatten_list(org_list, flattened_list=[]):
def flatten_list(org_list, flattened_list=None):
"""Expands nested list elements to new flatten list
Use for get len for of nested list

Expand All @@ -47,6 +47,9 @@ def flatten_list(org_list, flattened_list=[]):
flattened_list: (list) empty list
Returns: flatten list
"""
if not flattened_list:
flattened_list = []

for elem in org_list:
if not isinstance(elem, list):
flattened_list.append(elem)
Expand Down