diff options
Diffstat (limited to 'scripts/automation/trex_control_plane/common')
-rwxr-xr-x | scripts/automation/trex_control_plane/common/trex_stats.py | 3 |
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: |