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:
parent
3cf45bdc03
commit
34e8e63f71
|
|
@ -36,7 +36,7 @@ def list_profiles(base='./profiles/', filter_irrelevant_macs=True):
|
||||||
if first_line[0] == '#':
|
if first_line[0] == '#':
|
||||||
description = first_line[1:].strip()
|
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
|
break
|
||||||
return cache
|
return cache
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue