@configure(
    label='HoneyMalt: Kippo Sensors',
    description='Connects to Kippo Honeypots via MYSQL db',
    uuids=['HoneyMalt.v2.Get_Kippo_Sensors'],
    inputs=[('HoneyMalt', KippoDatabase)],
    debug=True
)
def dotransform(request, response):
    host = request.value
    x = db_connect(host)
    try:
        cursor = x.cursor()
        query = "select * from sensors"
        cursor.execute(query)
        for (id, ip) in cursor:
            e = KippoHoneypot(ip % '%s')
            e += Field('kippodatabase', host, displayname='Kippo Database')
            e += Field('kipposensorid', ('%s' % id), displayname='Kippo Sensor ID')
            response += e
        return response
    except Exception as e:
        return response + UIMessage(str(e))
dataset/ETHPy150Open SneakersInc/HoneyMalt/src/HoneyMalt/transforms/kipposensor.py/dotransform/swapped operands of `%`