1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

jenkins_job fix: NameError: global name 'module' is not defined (#2910)

This commit is contained in:
René Moser 2016-09-14 10:43:27 +02:00 committed by Matt Clay
parent 4e8566739e
commit c203283889

View file

@ -235,7 +235,7 @@ class JenkinsJob:
def present_job(self):
if self.config is None and self.enabled is None:
module.fail_json(msg='one of the following params is required on state=present: config,enabled')
self.module.fail_json(msg='one of the following params is required on state=present: config,enabled')
if not self.job_exists():
self.create_job()