Skip to content

Commit

Permalink
Remove forced string typing in database geored
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkneipp committed Oct 4, 2023
1 parent cca7fef commit 09f461a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,8 +1618,8 @@ def Update_Serving_MME(self, imsi, serving_mme, serving_mme_realm=None, serving_
self.handleGeored({
"imsi": str(imsi),
"serving_mme": result.serving_mme,
"serving_mme_realm": str(result.serving_mme_realm),
"serving_mme_peer": str(result.serving_mme_peer),
"serving_mme_realm": result.serving_mme_realm,
"serving_mme_peer": result.serving_mme_peer,
"serving_mme_timestamp": serving_mme_timestamp_string
})
else:
Expand Down Expand Up @@ -1676,7 +1676,7 @@ def Update_Proxy_CSCF(self, imsi, proxy_cscf, pcscf_realm=None, pcscf_peer=None,
if propagate == True:
if 'IMS' in self.config['geored']['sync_actions'] and self.config['geored']['enabled'] == True:
self.logTool.log(service='Database', level='debug', message="Propagate IMS changes to Geographic PyHSS instances", redisClient=self.redisMessaging)
self.handleGeored({"imsi": str(imsi), "pcscf": result.pcscf, "pcscf_realm": str(result.pcscf_realm), "pcscf_timestamp": pcscf_timestamp_string, "pcscf_peer": str(result.pcscf_peer), "pcscf_active_session": str(pcscf_active_session)})
self.handleGeored({"imsi": str(imsi), "pcscf": result.pcscf, "pcscf_realm": result.pcscf_realm, "pcscf_timestamp": pcscf_timestamp_string, "pcscf_peer": result.pcscf_peer, "pcscf_active_session": pcscf_active_session})
else:
self.logTool.log(service='Database', level='debug', message="Config does not allow sync of IMS events", redisClient=self.redisMessaging)
except Exception as E:
Expand Down Expand Up @@ -1730,7 +1730,7 @@ def Update_Serving_CSCF(self, imsi, serving_cscf, scscf_realm=None, scscf_peer=N
if propagate == True:
if 'IMS' in self.config['geored']['sync_actions'] and self.config['geored']['enabled'] == True:
self.logTool.log(service='Database', level='debug', message="Propagate IMS changes to Geographic PyHSS instances", redisClient=self.redisMessaging)
self.handleGeored({"imsi": str(imsi), "scscf": result.scscf, "scscf_realm": str(result.scscf_realm), "scscf_timestamp": scscf_timestamp_string, "scscf_peer": str(result.scscf_peer)})
self.handleGeored({"imsi": str(imsi), "scscf": result.scscf, "scscf_realm": result.scscf_realm, "scscf_timestamp": scscf_timestamp_string, "scscf_peer": result.scscf_peer})
else:
self.logTool.log(service='Database', level='debug', message="Config does not allow sync of IMS events", redisClient=self.redisMessaging)
except Exception as E:
Expand Down Expand Up @@ -1839,13 +1839,13 @@ def Update_Serving_APN(self, imsi, apn, pcrf_session_id, serving_pgw, subscriber
if 'PCRF' in self.config['geored']['sync_actions'] and self.config['geored']['enabled'] == True:
self.logTool.log(service='Database', level='debug', message="Propagate PCRF changes to Geographic PyHSS instances", redisClient=self.redisMessaging)
self.handleGeored({"imsi": str(imsi),
'serving_apn' : str(apn),
'pcrf_session_id': str(pcrf_session_id),
'serving_pgw': str(serving_pgw),
'serving_pgw_realm': str(serving_pgw_realm),
'serving_pgw_peer': str(serving_pgw_peer),
'serving_apn' : apn,
'pcrf_session_id': pcrf_session_id,
'serving_pgw': serving_pgw,
'serving_pgw_realm': serving_pgw_realm,
'serving_pgw_peer': serving_pgw_peer,
'serving_pgw_timestamp': serving_pgw_timestamp_string,
'subscriber_routing': str(subscriber_routing)
'subscriber_routing': subscriber_routing
})
else:
self.logTool.log(service='Database', level='debug', message="Config does not allow sync of PCRF events", redisClient=self.redisMessaging)
Expand Down

0 comments on commit 09f461a

Please sign in to comment.