Changed order of import and documentation to fix the build

pull/18777/head
pascalheraud 9 years ago committed by Matt Clay
parent a68ef49ff6
commit eb5fcca80b

@ -13,18 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# 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 = '''
---
module: ovh_ip_loadbalancing_backend
@ -108,6 +96,15 @@ application_secret=yoursecret consumer_key=yourconsumerkey
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):
endpoint = ansibleModule.params.get('endpoint')
application_key = ansibleModule.params.get('application_key')
@ -296,5 +293,8 @@ def main():
# We should never reach here
module.fail_json(msg='Internal ovh_ip_loadbalancing_backend module error')
# import module snippets
from ansible.module_utils.basic import *
if __name__ == '__main__':
main()

Loading…
Cancel
Save