summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-29 15:21:35 +0300
committerimarom <imarom@cisco.com>2016-03-29 15:21:35 +0300
commite99febc00e77f8fca2e4461df4c5db72f1630ef9 (patch)
tree4fc2afe63aac9205093c99545059ad5e1deea128 /scripts/automation/trex_control_plane
parent3cc8f7e9d8bca14e7cd309e5bf46c9346b42267b (diff)
Python 3 crash for portattr
Diffstat (limited to 'scripts/automation/trex_control_plane')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
index 25e35423..6fdc3454 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
@@ -1825,7 +1825,7 @@ class STLClient(object):
ports = self._validate_port_list(ports)
# check arguments
- validate_type('promiscuous', promiscuous, (bool, NoneType))
+ validate_type('promiscuous', promiscuous, (bool, type(None)))
# build attributes
attr_dict = {}