Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #10274 from jaryn/fix_dangerous_arg_value
Browse files Browse the repository at this point in the history
[1LP][RFR] Fix dangerous arg value
  • Loading branch information
mshriver authored Jul 31, 2020
2 parents 13c2d24 + e6f0216 commit c0acc7b
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit c0acc7b

Please sign in to comment.