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

This commit is contained in:
Kebo Liu 2019-05-28 23:32:08 +08:00 committed by lguohan
parent 60bd7417ea
commit 81071ec461

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)