Change-Id: Iad6832e7b9d468bc8ce73cb728bb983941f7a61c
Issue-ID: INT-1482
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
response.append(
{"link": link, "d_value": dval}
)
response.append(
{"link": link, "d_value": dval}
)
response.append(
{"link": None, "d_value": None}
)
response.append(
{"link": None, "d_value": None}
)
raise RuntimeError('Invalid Vendor Event Listener port ({0}) '
'specified'.format(vel_port))
raise RuntimeError('Invalid Vendor Event Listener port ({0}) '
'specified'.format(vel_port))
- if (len(vel_path) > 0 and vel_path[-1] != '/'):
+ if (vel_path and vel_path[-1] != '/'):
logger.warning('Event Listener Path ({0}) should have terminating '
'"/"! Adding one on to configured string.'.format(
vel_path))
logger.warning('Event Listener Path ({0}) should have terminating '
'"/"! Adding one on to configured string.'.format(
vel_path))
format(vel_path,
api_version,
'/' + vel_topic_name
format(vel_path,
api_version,
'/' + vel_topic_name
- if len(vel_topic_name) > 0
- else '')
+ if vel_topic_name else '')
throttle_url = '/{0}eventListener/v{1}/clientThrottlingState'.\
format(vel_path, api_version)
batch_url = '/{0}eventListener/v{1}/eventBatch'.\
throttle_url = '/{0}eventListener/v{1}/clientThrottlingState'.\
format(vel_path, api_version)
batch_url = '/{0}eventListener/v{1}/eventBatch'.\
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}
throttle_spec['suppressedFieldNames'] = fields
throttle_spec['suppressedFieldNames'] = fields
throttle_spec['suppressedNvPairsList'] = pairs
return {'command':
{'commandType': 'throttlingSpecification',
throttle_spec['suppressedNvPairsList'] = pairs
return {'command':
{'commandType': 'throttlingSpecification',