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 authored and James Valleroy committed 2018-12-02 11:08:01 -05:00
1 parent e641b0dd7c
commit 055e40820c
1 file changed
+1 -1
+1 -1
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()