azure_rm_deployment: fix docs and move import utils near main()

fixes build
pull/18777/head
Rene Moser 9 years ago committed by Matt Clay
parent ab26847e06
commit 87e975776a

@ -32,7 +32,6 @@ options:
description: description:
- The resource group name to use or create to host the deployed template - The resource group name to use or create to host the deployed template
required: true required: true
default: null
location: location:
description: description:
- The geo-locations in which the resource group will be located. - The geo-locations in which the resource group will be located.
@ -43,7 +42,7 @@ options:
- If state is "present", template will be created. If state is "present" and if deployment exists, it will be - If state is "present", template will be created. If state is "present" and if deployment exists, it will be
updated. If state is "absent", stack will be removed. updated. If state is "absent", stack will be removed.
default: present default: present
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -351,7 +350,6 @@ try:
except ImportError as exc: except ImportError as exc:
IMPORT_ERROR = "Error importing module prerequisites: %s" % exc IMPORT_ERROR = "Error importing module prerequisites: %s" % exc
from ansible.module_utils.basic import *
from ansible.module_utils.azure_rm_common import * from ansible.module_utils.azure_rm_common import *
try: try:
@ -635,6 +633,7 @@ class AzureRMDeploymentManager(AzureRMModuleBase):
def main(): def main():
AzureRMDeploymentManager() AzureRMDeploymentManager()
from ansible.module_utils.basic import *
if __name__ == '__main__': if __name__ == '__main__':
main() main()

Loading…
Cancel
Save