Unverified Commit e82800b4 authored by Matthew Jones's avatar Matthew Jones Committed by GitHub

Merge pull request #502 from AlanCoding/fix_label

Update call pattern for label association
parents 7c3372e5 20d7855f
......@@ -85,7 +85,7 @@ class Resource(models.Resource):
' "associate_label" method of job_template instead.')
else:
debug.log('Label already exists, associating with job template.', header='details')
return jt.associate_label(jt_id, label_id)
return jt.associate_label(job_template=jt_id, label=label_id)
self.endpoint = '/job_templates/%d/labels/' % jt_id
result = super(Resource, self).create(fail_on_found=fail_on_found, force_on_exists=force_on_exists, **kwargs)
self.endpoint = old_endpoint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment