summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRene Moser <mail@renemoser.net>2016-04-29 10:10:27 +0200
committerRene Moser <mail@renemoser.net>2016-04-29 10:10:27 +0200
commit94e6c326085a762a113344459de4129fb5ad8de4 (patch)
tree9fe0a1d9668cfe66a8e6be1cbf797cd80aa5888d
parentf7c421088adebea4966729adf38ae37955e9f9b3 (diff)
downloadansible-modules-extras-94e6c326085a762a113344459de4129fb5ad8de4.tar.gz
azure_rm_deployment: fix docs and move import utils near main()
fixes build
-rw-r--r--cloud/azure/azure_rm_deployment.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/cloud/azure/azure_rm_deployment.py b/cloud/azure/azure_rm_deployment.py
index aeb2454e..2d724362 100644
--- a/cloud/azure/azure_rm_deployment.py
+++ b/cloud/azure/azure_rm_deployment.py
@@ -32,7 +32,6 @@ options:
description:
- The resource group name to use or create to host the deployed template
required: true
- default: null
location:
description:
- 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
updated. If state is "absent", stack will be removed.
default: present
- required: true
+ required: false
choices:
- present
- absent
@@ -351,7 +350,6 @@ try:
except ImportError as exc:
IMPORT_ERROR = "Error importing module prerequisites: %s" % exc
-from ansible.module_utils.basic import *
from ansible.module_utils.azure_rm_common import *
try:
@@ -635,6 +633,7 @@ class AzureRMDeploymentManager(AzureRMModuleBase):
def main():
AzureRMDeploymentManager()
-
+from ansible.module_utils.basic import *
if __name__ == '__main__':
- main() \ No newline at end of file
+ main()
+