Skip to content

Commit 371434e

Browse files
committed
fix str issue
1 parent 2a0b122 commit 371434e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ansible/roles/test/files/ptftests/arista.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def parse_logs(self, data):
392392
return result
393393

394394
def parse_lacp(self, output):
395-
return output.find('Bundled') != -1
395+
return six.ensure_str(output).find('Bundled') != -1
396396

397397
def parse_bgp_neighbor_once(self, output):
398398
is_gr_ipv4_enabled = False

ansible/roles/test/files/ptftests/sonic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import scapy.all as scapyall
1111
import ast
1212
import socket
13-
13+
import six
1414
import host_device
1515

1616

@@ -309,7 +309,7 @@ def check_lag_flaps(self, interface, log_lines, start_time):
309309
return 0, num_lag_flaps
310310

311311
def parse_lacp(self, output):
312-
return output.find('Bundled') != -1
312+
return six.ensure_str(output).find('Bundled') != -1
313313

314314
def parse_bgp_neighbor_once(self, output):
315315
is_gr_ipv4_enabled = False

0 commit comments

Comments
 (0)