Skip to content

Commit 9309f6e

Browse files
committed
openstack-nova-list: Improve error handling
1 parent 1d372f1 commit 9309f6e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

check-plugins/openstack-nova-list/openstack-nova-list

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ except ImportError:
3636

3737

3838
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
39-
__version__ = '2023062301'
39+
__version__ = '2023071201'
4040

4141
DESCRIPTION = """Nova is the OpenStack project that provides a way to provision compute
4242
instances (aka virtual servers).
@@ -253,12 +253,11 @@ def main():
253253
'created': server.created.replace('T', ' ').replace('Z', ''),
254254
'id': server.id,
255255
'name': server.name,
256-
'progress': server.progress,
257256
'status': server.status,
258257
'updated': server.updated.replace('T', ' ').replace('Z', ''),
259258
}
260259
except Exception as e:
261-
lib.base.oao('Error occured while fetching server attributes.', STATE_UNKNOWN)
260+
lib.base.cu('Error occured while fetching server attributes.')
262261
item['created'] = '{} ({} ago)'.format(
263262
item['created'],
264263
lib.human.seconds2human(

0 commit comments

Comments
 (0)