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:
Joseph Nuthalapati 2018-11-30 16:04:52 +05:30 committed by James Valleroy
parent e641b0dd7c
commit 055e40820c
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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()