Skip to content

Commit

Permalink
Merge pull request #154 from guankc/master
Browse files Browse the repository at this point in the history
Fixed a type error when comparing size
  • Loading branch information
guankc authored Jun 9, 2021
2 parents 3697fcd + 82abddb commit 8bfd069
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 8bfd069

Please sign in to comment.