mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-15 09:51:21 +00:00
snapshots: Fix default snapshot listing
The latest snapper returns the currently active snapshot like "4*", which interferes with both the urls and the templates. Stripping off the unnecessary asterisk since we have better ways of detecting what the currently active snapshot is. Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
e641b0dd7c
commit
055e40820c
@ -138,7 +138,7 @@ def subcommand_list(_):
|
||||
'description')
|
||||
snapshots = []
|
||||
for line in lines[2:]:
|
||||
parts = [part.strip() for part in line.split('|')]
|
||||
parts = [part.strip('* ') for part in line.split('|')]
|
||||
snapshots.append(dict(zip(keys, parts)))
|
||||
|
||||
default = _get_default_snapshot()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user