diff --git a/nlds_utils/nlds_monitor.py b/nlds_utils/nlds_monitor.py index 50fe2ad..4bdb1e0 100644 --- a/nlds_utils/nlds_monitor.py +++ b/nlds_utils/nlds_monitor.py @@ -115,8 +115,9 @@ def print_complex_monitor(records_dict_list, stat_string): click.echo(f"{'':<4}{'user':<16}: {record['user']}") click.echo(f"{'':<4}{'group':<16}: {record['group']}") click.echo(f"{'':<4}{'action':<16}: {record['api_action']}") + click.echo(f"{'':<4}{'job label':<16}: {record['job_label']}") click.echo(f"{'':<4}{'transaction id':<16}: {record['transaction_id']}") - click.echo(f"{'':<4}{'creation time':<16}: {(record['creation_time'])}") + click.echo(f"{'':<4}{'last update':<16}: {(record['creation_time'])}") click.echo(f"{'':<4}{'state':<16}: {record['state']}") warn_str = "" diff --git a/tests/nlds_utils/test_nlds_monitor.py b/tests/nlds_utils/test_nlds_monitor.py index 429d694..fa8b16a 100644 --- a/tests/nlds_utils/test_nlds_monitor.py +++ b/tests/nlds_utils/test_nlds_monitor.py @@ -153,8 +153,9 @@ def generate_complex_expected_output(record_list, stat_string): output.append(f"{'':<4}{'user':<16}: {record.user}") output.append(f"{'':<4}{'group':<16}: {record.group}") output.append(f"{'':<4}{'action':<16}: {record.api_action}") + output.append(f"{'':<4}{'job label':<16}: {record.job_label}") output.append(f"{'':<4}{'transaction id':<16}: {record.transaction_id}") - output.append(f"{'':<4}{'creation time':<16}: {record.creation_time}") + output.append(f"{'':<4}{'last update':<16}: {record.creation_time}") state = record.get_state() output.append(f"{'':<4}{'state':<16}: {state.name}")