normalizing documentation before 2.8 (#54004)

* normalizing documentation

* fixed pep8

* a few more fixes
This commit is contained in:
Zim Kalinowski 2019-03-19 10:29:30 +08:00 committed by ansibot
parent cf24542e9f
commit 35f8dbed35
19 changed files with 89 additions and 96 deletions

View file

@ -71,14 +71,14 @@ EXAMPLES = '''
- name: Create an image from a virtual machine
azure_rm_image:
resource_group: myResourceGroup
name: foobar
source: testvm001
name: myImage
source: myVirtualMachine
- name: Create an image from os disk
azure_rm_image:
resource_group: myResourceGroup
name: foobar
source: /subscriptions/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX/resourceGroups/Testing/providers/Microsoft.Compute/disks/disk001
name: myImage
source: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Compute/disks/disk001
data_disk_sources:
- datadisk001
- datadisk002
@ -87,7 +87,7 @@ EXAMPLES = '''
- name: Create an image from os disk via dict
azure_rm_image:
resource_group: myResourceGroup
name: foobar
name: myImage
source:
type: disks
resource_group: myResourceGroup
@ -101,7 +101,7 @@ EXAMPLES = '''
azure_rm_image:
state: absent
resource_group: myResourceGroup
name: foobar
name: myImage
source: testvm001
'''
@ -110,7 +110,7 @@ id:
description: Image resource path.
type: str
returned: success
example: "/subscriptions/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX/resourceGroups/Testing/providers/Microsoft.Compute/images/foobar"
example: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Compute/images/myImage"
''' # NOQA
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, format_resource_id