Skip to content

Commit

Permalink
Update restart_count to restore_count for warm restart (#326)
Browse files Browse the repository at this point in the history
Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
  • Loading branch information
jipanyang authored and lguohan committed Oct 10, 2018
1 parent 7a51a85 commit 7874b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions show/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ def remove_prefix(text, prefix):
entry = db.get_all(db.STATE_DB, tk)
r = []
r.append(remove_prefix(tk, prefix))
r.append(entry['restart_count'])
r.append(entry['restore_count'])

if 'state' not in entry:
r.append("")
Expand All @@ -1450,7 +1450,7 @@ def remove_prefix(text, prefix):

table.append(r)

header = ['name', 'restart_count', 'state']
header = ['name', 'restore_count', 'state']
click.echo(tabulate(table, header))

@warm_restart.command()
Expand Down

0 comments on commit 7874b8f

Please sign in to comment.