diff options
author | 2020-03-24 10:53:33 +0100 | |
---|---|---|
committer | 2020-03-24 10:53:33 +0100 | |
commit | 7c69a61c7db9d75d5bee3529533295bba37779ab (patch) | |
tree | feca9f8f33b068dff9528f2fd4b03062b9d5545a /vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py | |
parent | b8c5101a920275687fdab980048cb4dae5aa902d (diff) |
Do not use `len(SEQUENCE)` to determine if a sequence is empty
Change-Id: Iad6832e7b9d468bc8ce73cb728bb983941f7a61c
Issue-ID: INT-1482
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py')
-rw-r--r-- | vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py b/vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py index 72f53fb2..5d7394e1 100644 --- a/vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py +++ b/vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py @@ -43,9 +43,9 @@ def command_interval(interval): def command_throttle(domain, fields, pairs): "return a throttlingSpecification" throttle_spec = {'eventDomain' : domain} - if len(fields): + if fields: throttle_spec['suppressedFieldNames'] = fields - if len(pairs): + if pairs: throttle_spec['suppressedNvPairsList'] = pairs return {'command': {'commandType': 'throttlingSpecification', |