Skip to content

Commit

Permalink
show alarm desc
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed May 16, 2024
1 parent 90febd9 commit 0b7bd9b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eva-shell/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.2.22
VERSION=0.2.23

all:
@echo "what do you want to build today?"
Expand Down
2 changes: 1 addition & 1 deletion eva-shell/eva4_shell/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.2.22'
__version__ = '0.2.23'

DEFAULT_REPOSITORY_URL = 'https://pub.bma.ai/eva4'
6 changes: 4 additions & 2 deletions eva-shell/eva4_shell/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@ def alarm_list(self, alarm_svc, level=None, group=None, id=None):
if id:
flt['id'] = id
data = call_rpc('alarm.list', flt, target=alarm_svc)
print_result(data, cols=['oid', 'level', 'group', 'id'])
print_result(data, cols=['oid', 'level', 'group', 'id', 'description'])

def alarm_state(self,
alarm_svc,
Expand Down Expand Up @@ -1925,7 +1925,9 @@ def alarm_state(self,
if current_command.json:
print_result(data)
else:
cols = ['oid', 'node', 'level', 'group', 'id', 'current']
cols = [
'oid', 'node', 'level', 'group', 'id', 'current', 'description'
]
if user:
cols += ['subscriptions']
for d in data:
Expand Down
2 changes: 1 addition & 1 deletion eva-shell/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.2.22'
__version__ = '0.2.23'

import setuptools

Expand Down

0 comments on commit 0b7bd9b

Please sign in to comment.