jenkins_job fix: NameError: global name 'module' is not defined (#2910)
This commit is contained in:
parent
24aceceb36
commit
6d37aa4260
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ class JenkinsJob:
|
||||||
|
|
||||||
def present_job(self):
|
def present_job(self):
|
||||||
if self.config is None and self.enabled is None:
|
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():
|
if not self.job_exists():
|
||||||
self.create_job()
|
self.create_job()
|
||||||
|
|
Loading…
Reference in a new issue