in playbooks/library/update_checkers.py [0:0]
def update_checker(token, existing, spec):
"""If the contents of spec differ from existing, update the checker"""
update = False
for k, v in spec.items():
if existing[k] != v:
update = True
break
if update:
url = GERRIT_URL + '/a/plugins/checks/checkers/' + spec['uuid']
data = requests.post(url, cookies={'o': token}, json=spec).text
return json.loads(data[4:])