Skip to content

Commit

Permalink
Fixed a type error when comparing size
Browse files Browse the repository at this point in the history
  • Loading branch information
guankc committed Jun 9, 2021
1 parent 3b86006 commit 82abddb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions delfin/drivers/netapp/dataontap/netapp_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,9 @@ def get_events(self, query_para):
event_map['Time'],
constant.EVENT_TIME_TYPE)))
if query_para is None or \
(query_para['begin_time']
(int(query_para['begin_time'])
<= occur_time
<= query_para['end_time']):
print(event_map)
<= int(query_para['end_time'])):
alert_model = {
'alert_id': event_map['Sequence#'],
'alert_name': event_map['MessageName'],
Expand Down Expand Up @@ -311,9 +310,9 @@ def get_alerts(self, query_para):
alert_map['IndicationTime'],
constant.ALTER_TIME_TYPE)))
if query_para is None or \
(query_para['begin_time']
(int(query_para['begin_time'])
<= occur_time
<= query_para['end_time']):
<= int(query_para['end_time'])):
alert_model = {
'alert_id': alert_map['AlertID'],
'alert_name': alert_map['ProbableCause'],
Expand Down

0 comments on commit 82abddb

Please sign in to comment.