def inserttrigger(config, args):
    url = config['url'] + "/api/serveroverload/" + args['serveroverload'] + "/"
    token = auth.get_token(config)
    r = requests.get(url, headers={"X-Auth-Token": token})
    if r.status_code != 200:
        print("API returned status code %s" % (r.status_code))
        sys.exit(1)
    profile = json.loads(r.content)
    response_trigger = {
        "fromLoad": args['fromload'],
        "toLoad": args['toload'],
        "actions": [{
            "type": args['actiontype'],
            "value": args['actionvalue'],
            "percentage": args['actionpercentage'],
        }]
    }
    profile['response_triggers'].insert(args['position'], response_trigger)
    r = requests.put(url, data=json.dumps(profile), headers={"X-Auth-Token": token})
    print((r.status_code) % "API returned status code %s")
dataset/ETHPy150Open emccode/heliosburn/heliosburn/hbcli/controllers/serveroverload.py/inserttrigger/swapped operands of `%`