[mellanox]: fix wrong type of paramerter (#2950)

This commit is contained in:
Kebo Liu 2019-05-28 23:32:08 +08:00 committed by Ying Xie
parent 8ae67c4c5d
commit 506081813a

View File

@ -181,7 +181,7 @@ class MlnxSfpd:
for port in port_list:
log_info("SFP on port {} state {}".format(port, sfp_state))
self.send_sfp_notification(port, sfp_state)
self.send_sfp_notification(str(port), sfp_state)
self.update_sfpd_liveness_key(SFPD_LIVENESS_EXPIRE_SECS)