Fixes after Travis feedback
This commit is contained in:
parent
771c40952b
commit
ee6fc470db
2 changed files with 6 additions and 3 deletions
0
lib/ansible/modules/extras/cloud/azure/__init__.py
Normal file
0
lib/ansible/modules/extras/cloud/azure/__init__.py
Normal file
|
@ -300,6 +300,9 @@ EXAMPLES = '''
|
||||||
value: devopscleazure
|
value: devopscleazure
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
RETURN = '''
|
||||||
|
'''
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import time
|
import time
|
||||||
import yaml
|
import yaml
|
||||||
|
@ -585,9 +588,6 @@ def get_instances(client, group, deployment):
|
||||||
return [dict(vm_name=vm.resource_name, ips=[get_ip_dict(ip) for ip in ips]) for vm, ips in vms_and_ips if len(ips) > 0]
|
return [dict(vm_name=vm.resource_name, ips=[get_ip_dict(ip) for ip in ips]) for vm, ips in vms_and_ips if len(ips) > 0]
|
||||||
|
|
||||||
|
|
||||||
# import module snippets
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
azure_url=dict(default=AZURE_URL),
|
azure_url=dict(default=AZURE_URL),
|
||||||
|
@ -656,6 +656,9 @@ def main():
|
||||||
destroy_resource_group(module, resource_client, conn_info)
|
destroy_resource_group(module, resource_client, conn_info)
|
||||||
module.exit_json(changed=True, msg='deployment deleted')
|
module.exit_json(changed=True, msg='deployment deleted')
|
||||||
|
|
||||||
|
# import module snippets
|
||||||
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue