Code Review
/
demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Do not use `len(SEQUENCE)` to determine if a sequence is empty
[demo.git]
/
vnfs
/
VES5.0
/
evel
/
evel-test-collector
/
code
/
collector
/
test_control.py
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
72f53fb
..
5d7394e
100644
(file)
--- 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}
def command_throttle(domain, fields, pairs):
"return a throttlingSpecification"
throttle_spec = {'eventDomain' : domain}
- if
len(fields)
:
+ if
fields
:
throttle_spec['suppressedFieldNames'] = fields
throttle_spec['suppressedFieldNames'] = fields
- if
len(pairs)
:
+ if
pairs
:
throttle_spec['suppressedNvPairsList'] = pairs
return {'command':
{'commandType': 'throttlingSpecification',
throttle_spec['suppressedNvPairsList'] = pairs
return {'command':
{'commandType': 'throttlingSpecification',