Skip to content

Commit 15e806f

Browse files
committed
Fixed find_analysis_group to accomodate list input from argparse
1 parent 4c52d76 commit 15e806f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

iotile_analytics_interactive/iotile_analytics/interactive/scripts/analytics_host.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ def print_report_details(report):
216216

217217
def find_analysis_groups(args):
218218
"""Parse through the list of options for analysis_group and build a list"""
219+
groups = args.analysis_group
220+
219221
all_groups = []
220222
all_logins = True
221-
222-
groups = args.analysis_group
223223
for _group in groups:
224-
logged_in, group = find_analysis_group(_group)
224+
logged_in, group = find_analysis_group(args, _group)
225225
all_groups.append(group)
226226
all_logins = all_logins and logged_in
227227

@@ -230,10 +230,10 @@ def find_analysis_groups(args):
230230

231231
return all_logins, all_groups
232232

233-
def find_analysis_group(args):
233+
def find_analysis_group(args, group_in):
234234
"""Find an analysis group by name."""
235235

236-
group = args.analysis_group
236+
group = group_in
237237
is_cloud = False
238238

239239
if group.startswith('d--'):

0 commit comments

Comments
 (0)