diff options
Diffstat (limited to 'scripts/automation/trex_control_plane/common')
-rwxr-xr-x | scripts/automation/trex_control_plane/common/trex_streams.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/automation/trex_control_plane/common/trex_streams.py b/scripts/automation/trex_control_plane/common/trex_streams.py index 674a6bcc..1aeb46b0 100755 --- a/scripts/automation/trex_control_plane/common/trex_streams.py +++ b/scripts/automation/trex_control_plane/common/trex_streams.py @@ -105,9 +105,8 @@ class CRxStats(object): if self.enabled: dump = {"enabled": True} dump.update({k: getattr(self, k) - for k in CRxStats.FIELDS - if getattr(self, k) or k == "stream_id" - }) + for k in CRxStats.FIELDS} + ) return dump else: return {"enabled": False} |