You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
According to foreman API doc apidoc/v2/job_templates/show.html, showing a job template should not require attribute audit_comment.
However, when I try to use the class to read a job template, it errors out with
>>> jobtmpl.read()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sam/.pyenv/versions/3.6.1/lib/python3.6/site-packages/nailgun/entities.py", line 1614, in read
ignore=ignore, params=params)
File "/home/sam/.pyenv/versions/3.6.1/lib/python3.6/site-packages/nailgun/entity_mixins.py", line 822, in read
setattr(entity, field_name, attrs[field_name])
KeyError: 'audit_comment'
Steps to reproduce:
On a fresh installed foreman server
I checked the source code seems when ignore is None it will add 'template_input' into ignore.
Could you please check if 'audit_comment' should be added as well?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
According to foreman API doc apidoc/v2/job_templates/show.html, showing a job template should not require attribute audit_comment.
However, when I try to use the class to read a job template, it errors out with
Steps to reproduce:
On a fresh installed foreman server
I checked the source code seems when
ignore
is None it will add 'template_input' into ignore.Could you please check if 'audit_comment' should be added as well?
Thanks!
The text was updated successfully, but these errors were encountered: