Pep8 fixes for Windows module (#24349)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-05-08 01:29:35 +05:30 committed by jhawkesworth
parent 86bf27511c
commit 9c5b55232c
12 changed files with 15 additions and 35 deletions

View file

@ -23,7 +23,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
'supported_by': 'core'} 'supported_by': 'core'}
DOCUMENTATION=''' DOCUMENTATION = '''
module: win_disk_image module: win_disk_image
short_description: Manage ISO/VHD/VHDX mounts on Windows hosts short_description: Manage ISO/VHD/VHDX mounts on Windows hosts
version_added: 2.3 version_added: 2.3
@ -47,7 +47,7 @@ author:
- Matt Davis (@nitzmahone) - Matt Davis (@nitzmahone)
''' '''
RETURN=r''' RETURN = r'''
mount_path: mount_path:
description: filesystem path where the target image is mounted description: filesystem path where the target image is mounted
returned: when C(state) is C(present) returned: when C(state) is C(present)
@ -55,7 +55,7 @@ mount_path:
sample: F:\ sample: F:\
''' '''
EXAMPLES=r''' EXAMPLES = r'''
# ensure an iso is mounted # ensure an iso is mounted
- win_disk_image: - win_disk_image:
image_path: C:\install.iso image_path: C:\install.iso
@ -74,4 +74,3 @@ EXAMPLES=r'''
state: absent state: absent
''' '''

View file

@ -48,7 +48,7 @@ notes:
author: "Matt Davis (@nitzmahone)" author: "Matt Davis (@nitzmahone)"
''' '''
EXAMPLES=r''' EXAMPLES = r'''
# set a single address on the adapter named Ethernet # set a single address on the adapter named Ethernet
- win_dns_client: - win_dns_client:
adapter_names: Ethernet adapter_names: Ethernet
@ -68,6 +68,6 @@ EXAMPLES=r'''
ipv4_addresses: [] ipv4_addresses: []
''' '''
RETURN=''' RETURN = '''
''' '''

View file

@ -23,7 +23,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
'supported_by': 'core'} 'supported_by': 'core'}
DOCUMENTATION=''' DOCUMENTATION = '''
module: win_domain module: win_domain
short_description: Ensures the existence of a Windows domain. short_description: Ensures the existence of a Windows domain.
version_added: 2.3 version_added: 2.3
@ -43,7 +43,7 @@ author:
- Matt Davis (@nitzmahone) - Matt Davis (@nitzmahone)
''' '''
RETURN=''' RETURN = '''
reboot_required: reboot_required:
description: True if changes were made that require a reboot. description: True if changes were made that require a reboot.
returned: always returned: always
@ -52,7 +52,7 @@ reboot_required:
''' '''
EXAMPLES=r''' EXAMPLES = r'''
# ensure the named domain is reachable from the target host; if not, create the domain in a new forest residing on the target host # ensure the named domain is reachable from the target host; if not, create the domain in a new forest residing on the target host
- win_domain: - win_domain:
dns_domain_name: ansible.vagrant dns_domain_name: ansible.vagrant

View file

@ -23,7 +23,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
'supported_by': 'core'} 'supported_by': 'core'}
DOCUMENTATION=''' DOCUMENTATION = '''
module: win_domain_controller module: win_domain_controller
short_description: Manage domain controller/member server state for a Windows host short_description: Manage domain controller/member server state for a Windows host
version_added: 2.3 version_added: 2.3
@ -58,7 +58,7 @@ author:
- Matt Davis (@nitzmahone) - Matt Davis (@nitzmahone)
''' '''
RETURN=''' RETURN = '''
reboot_required: reboot_required:
description: True if changes were made that require a reboot. description: True if changes were made that require a reboot.
returned: always returned: always
@ -67,7 +67,7 @@ reboot_required:
''' '''
EXAMPLES=r''' EXAMPLES = r'''
# ensure a server is a domain controller # ensure a server is a domain controller
- hosts: winclient - hosts: winclient
gather_facts: no gather_facts: no
@ -97,4 +97,3 @@ EXAMPLES=r'''
log_path: c:\ansible_win_domain_controller.txt log_path: c:\ansible_win_domain_controller.txt
''' '''

View file

@ -24,7 +24,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
'supported_by': 'core'} 'supported_by': 'core'}
DOCUMENTATION=''' DOCUMENTATION = '''
module: win_domain_membership module: win_domain_membership
short_description: Manage domain/workgroup membership for a Windows host short_description: Manage domain/workgroup membership for a Windows host
version_added: 2.3 version_added: 2.3
@ -58,7 +58,7 @@ author:
- Matt Davis (@nitzmahone) - Matt Davis (@nitzmahone)
''' '''
RETURN=''' RETURN = '''
reboot_required: reboot_required:
description: True if changes were made that require a reboot. description: True if changes were made that require a reboot.
returned: always returned: always
@ -66,7 +66,7 @@ reboot_required:
sample: true sample: true
''' '''
EXAMPLES=''' EXAMPLES = '''
# host should be a member of domain ansible.vagrant; module will ensure the hostname is mydomainclient # host should be a member of domain ansible.vagrant; module will ensure the hostname is mydomainclient
# and will use the passed credentials to join domain if necessary. # and will use the passed credentials to join domain if necessary.

View file

@ -91,4 +91,3 @@ EXAMPLES = r'''
name: TestVariable name: TestVariable
level: user level: user
''' '''

View file

@ -23,7 +23,6 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
'supported_by': 'community'} 'supported_by': 'community'}
DOCUMENTATION = r''' DOCUMENTATION = r'''
--- ---
module: win_iis_webapppool module: win_iis_webapppool
@ -151,4 +150,3 @@ info:
type: string type: string
sample: "Started" sample: "Started"
''' '''

View file

@ -96,4 +96,3 @@ wait:
type: boolean type: boolean
sample: false sample: false
''' '''

View file

@ -82,4 +82,3 @@ EXAMPLES = r'''
path: C:\7z920-x64.msi path: C:\7z920-x64.msi
state: absent state: absent
''' '''

View file

@ -52,4 +52,3 @@ EXAMPLES = r'''
- win_ping: - win_ping:
data: crash data: crash
''' '''

View file

@ -1,5 +1,5 @@
#!/usr/bin/python #!/usr/bin/python
#coding: utf-8 -*- # coding: utf-8 -*-
# (c) 2017 Dag Wieers <dag@wieers.com> # (c) 2017 Dag Wieers <dag@wieers.com>
# #
@ -71,4 +71,3 @@ path:
type: string type: string
sample: C:\Users\Administrator\AppData\Local\Temp\ansible.bMlvdk sample: C:\Users\Administrator\AppData\Local\Temp\ansible.bMlvdk
''' '''

View file

@ -766,17 +766,6 @@ lib/ansible/modules/web_infrastructure/ansible_tower/tower_team.py
lib/ansible/modules/web_infrastructure/ansible_tower/tower_user.py lib/ansible/modules/web_infrastructure/ansible_tower/tower_user.py
lib/ansible/modules/web_infrastructure/ejabberd_user.py lib/ansible/modules/web_infrastructure/ejabberd_user.py
lib/ansible/modules/web_infrastructure/jboss.py lib/ansible/modules/web_infrastructure/jboss.py
lib/ansible/modules/windows/win_disk_image.py
lib/ansible/modules/windows/win_dns_client.py
lib/ansible/modules/windows/win_domain.py
lib/ansible/modules/windows/win_domain_controller.py
lib/ansible/modules/windows/win_domain_membership.py
lib/ansible/modules/windows/win_environment.py
lib/ansible/modules/windows/win_iis_webapppool.py
lib/ansible/modules/windows/win_msg.py
lib/ansible/modules/windows/win_msi.py
lib/ansible/modules/windows/win_ping.py
lib/ansible/modules/windows/win_tempfile.py
lib/ansible/parsing/dataloader.py lib/ansible/parsing/dataloader.py
lib/ansible/parsing/mod_args.py lib/ansible/parsing/mod_args.py
lib/ansible/parsing/quoting.py lib/ansible/parsing/quoting.py