summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/common
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/trex_control_plane/common')
-rwxr-xr-xscripts/automation/trex_control_plane/common/trex_stats.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/common/trex_stats.py b/scripts/automation/trex_control_plane/common/trex_stats.py
index 33015f01..b7e768c1 100755
--- a/scripts/automation/trex_control_plane/common/trex_stats.py
+++ b/scripts/automation/trex_control_plane/common/trex_stats.py
@@ -1,6 +1,7 @@
#!/router/bin/python
import copy
+
class CTRexStatsManager(object):
def __init__(self, *args):
@@ -9,7 +10,7 @@ class CTRexStatsManager(object):
setattr(self, stat_type, CTRexStatsManager.CSingleStatsHandler())
def __getitem__(self, item):
- stats_obj = getattr(self,item)
+ stats_obj = getattr(self, item)
if stats_obj:
return stats_obj.get_stats()
else: