Fixed bug: profile names listed by list_profiles() contained a trailing dot. This causes issues later when trying to select a profile from said list.

This commit is contained in:
Anton Hvornum 2020-09-30 09:32:20 +00:00
parent 3cf45bdc03
commit 34e8e63f71
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def list_profiles(base='./profiles/', filter_irrelevant_macs=True):
if first_line[0] == '#':
description = first_line[1:].strip()
cache[file[:-2]] = {'path' : os.path.join(root, file), 'description' : description, 'tailored' : tailored}
cache[file[:-3]] = {'path' : os.path.join(root, file), 'description' : description, 'tailored' : tailored}
break
return cache