mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-02 20:24:23 -07:00
Changed order of import and documentation to fix the build
This commit is contained in:
parent
a68ef49ff6
commit
eb5fcca80b
1 changed files with 12 additions and 12 deletions
|
@ -13,18 +13,6 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
import sys
|
|
||||||
try:
|
|
||||||
import ovh
|
|
||||||
import ovh.exceptions
|
|
||||||
from ovh.exceptions import APIError
|
|
||||||
HAS_OVH = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_OVH = False
|
|
||||||
|
|
||||||
# import module snippets
|
|
||||||
from ansible.module_utils.basic import *
|
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: ovh_ip_loadbalancing_backend
|
module: ovh_ip_loadbalancing_backend
|
||||||
|
@ -108,6 +96,15 @@ application_secret=yoursecret consumer_key=yourconsumerkey
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import sys
|
||||||
|
try:
|
||||||
|
import ovh
|
||||||
|
import ovh.exceptions
|
||||||
|
from ovh.exceptions import APIError
|
||||||
|
HAS_OVH = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_OVH = False
|
||||||
|
|
||||||
def getOvhClient(ansibleModule):
|
def getOvhClient(ansibleModule):
|
||||||
endpoint = ansibleModule.params.get('endpoint')
|
endpoint = ansibleModule.params.get('endpoint')
|
||||||
application_key = ansibleModule.params.get('application_key')
|
application_key = ansibleModule.params.get('application_key')
|
||||||
|
@ -296,5 +293,8 @@ def main():
|
||||||
# We should never reach here
|
# We should never reach here
|
||||||
module.fail_json(msg='Internal ovh_ip_loadbalancing_backend module error')
|
module.fail_json(msg='Internal ovh_ip_loadbalancing_backend module error')
|
||||||
|
|
||||||
|
# import module snippets
|
||||||
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue