Skip to content

Commit

Permalink
Change to case-insensitive string contains check
Browse files Browse the repository at this point in the history
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
  • Loading branch information
saiarcot895 committed May 30, 2023
1 parent c719f32 commit 01852c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/teamd_increase_retry_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def main(probeOnly=False):
log.log_warning("WARNING: No peer description available via LLDP for {}; skipping".format(portName))
continue
portChannelChecked = True
if "SONiC" not in peerInfo["descr"]:
if "sonic" not in peerInfo["descr"].lower():
log.log_warning("WARNING: Peer device is not a SONiC device; skipping")
failedPortChannels.append(portChannel)
break
Expand Down

0 comments on commit 01852c6

Please sign in to comment.