Skip to content

Commit

Permalink
openstack-nova-list: Improve output
Browse files Browse the repository at this point in the history
  • Loading branch information
markuslf committed Sep 7, 2023
1 parent ee974e7 commit 8f490ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions check-plugins/openstack-nova-list/openstack-nova-list
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ except ImportError:


__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
__version__ = '2023071301'
__version__ = '2023090701'

DESCRIPTION = """Nova is the OpenStack project that provides a way to provision compute
instances (aka virtual servers).
Expand Down Expand Up @@ -194,6 +194,7 @@ def main():
sys.exit(STATE_UNKNOWN)

# fetch data
# https://github.com/openstack/keystoneauth
# https://github.com/openstack/python-novaclient
# set a bunch of possible OpenStack credentials
env = lib.base.coe(lib.disk.read_env(args.RC_FILE))
Expand Down Expand Up @@ -290,7 +291,7 @@ def main():
vm_state_count['VERIFY_RESIZE'],
vm_state_count['ERROR'],
)
msg += 'Last status update {} UTC ({} ago).'.format(
msg += 'Last status change {} UTC ({} ago).'.format(
max_last_update,
lib.human.seconds2human(
lib.time.timestrdiff(lib.time.now(as_type='iso'), max_last_update),
Expand Down

0 comments on commit 8f490ed

Please sign in to comment.