mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #39231 from terminalmage/clarify-jenkins-depends
Add clarification for jenkins execution module
This commit is contained in:
commit
d9b0671dbd
@ -4,6 +4,11 @@ Module for controlling Jenkins
|
||||
|
||||
.. versionadded:: 2016.3.0
|
||||
|
||||
:depends: python-jenkins_ Python module (not to be confused with jenkins_)
|
||||
|
||||
.. _python-jenkins: https://pypi.python.org/pypi/python-jenkins
|
||||
.. _jenkins: https://pypi.python.org/pypi/jenkins
|
||||
|
||||
:configuration: This module can be used by either passing an api key and version
|
||||
directly or by specifying both in a configuration profile in the salt
|
||||
master/minion config.
|
||||
@ -45,9 +50,15 @@ def __virtual__():
|
||||
:return: The virtual name of the module.
|
||||
'''
|
||||
if HAS_JENKINS:
|
||||
if hasattr(jenkins, 'Jenkins'):
|
||||
return __virtualname__
|
||||
else:
|
||||
return (False,
|
||||
'The wrong Python module appears to be installed. Please '
|
||||
'make sure that \'python-jenkins\' is installed, not '
|
||||
'\'jenkins\'.')
|
||||
return (False, 'The jenkins execution module cannot be loaded: '
|
||||
'python jenkins library is not installed.')
|
||||
'python-jenkins is not installed.')
|
||||
|
||||
|
||||
def _connect():
|
||||
|
Loading…
Reference in New Issue
Block a user