Skip to content

Commit

Permalink
cleanup - required: false (ansible#50648)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zim Kalinowski authored and kbreit committed Jan 11, 2019
1 parent 9eea773 commit 8c48e1e
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 63 deletions.
Expand Up @@ -218,22 +218,18 @@ def __init__(self):
),
state=dict(
type='str',
required=False,
default='present',
choices=['present', 'absent']
),
location=dict(
type='str',
required=False
type='str'
),
admin_user_enabled=dict(
type='bool',
required=False,
default=False
),
sku=dict(
type='str',
required=False,
default='Standard',
choices=['Basic', 'Standard', 'Premium']
)
Expand Down
Expand Up @@ -108,16 +108,13 @@ class AzureRMManagedDiskFacts(AzureRMModuleBase):
def __init__(self):
self.module_arg_spec = dict(
resource_group=dict(
type='str',
required=False
type='str'
),
name=dict(
type='str',
required=False
type='str'
),
tags=dict(
type='str',
required=False
type='str'
),
)
self.results = dict(
Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/azure/azure_rm_networkinterface.py
Expand Up @@ -46,11 +46,9 @@
choices:
- absent
- present
required: false
location:
description:
- Valid azure location. Defaults to location of the resource group.
required: false
virtual_network:
description:
- An existing virtual network with which the network interface will be associated. Required
Expand Down
3 changes: 1 addition & 2 deletions lib/ansible/modules/cloud/azure/azure_rm_resource.py
Expand Up @@ -144,8 +144,7 @@ def __init__(self):
# define user inputs into argument
self.module_arg_spec = dict(
url=dict(
type='str',
required=False
type='str'
),
provider=dict(
type='str',
Expand Down
16 changes: 5 additions & 11 deletions lib/ansible/modules/cloud/azure/azure_rm_resource_facts.py
Expand Up @@ -102,28 +102,22 @@ def __init__(self):
# define user inputs into argument
self.module_arg_spec = dict(
url=dict(
type='str',
required=False
type='str'
),
provider=dict(
type='str',
required=False
type='str'
),
resource_group=dict(
type='str',
required=False
type='str'
),
resource_type=dict(
type='str',
required=False
type='str'
),
resource_name=dict(
type='str',
required=False
type='str'
),
subresource=dict(
type='list',
required=False,
default=[]
),
api_version=dict(
Expand Down
16 changes: 5 additions & 11 deletions lib/ansible/modules/cloud/azure/azure_rm_sqlserver.py
Expand Up @@ -132,29 +132,23 @@ def __init__(self):
required=True
),
location=dict(
type='str',
required=False
type='str'
),
admin_username=dict(
type='str',
required=False
type='str'
),
admin_password=dict(
type='str',
no_log=True,
required=False
no_log=True
),
version=dict(
type='str',
required=False
type='str'
),
identity=dict(
type='str',
required=False
type='str'
),
state=dict(
type='str',
required=False,
default='present',
choices=['present', 'absent']
)
Expand Down
Expand Up @@ -41,39 +41,30 @@
choices:
- absent
- present
required: false
location:
description:
- Valid azure location. Defaults to location of the resource group.
required: false
virtual_machine_name:
description:
- The name of the virtual machine where the extension should be create or updated.
required: false
publisher:
description:
- The name of the extension handler publisher.
required: false
virtual_machine_extension_type:
description:
- The type of the extension handler.
required: false
type_handler_version:
description:
- The type version of the extension handler.
required: false
settings:
description:
- Json formatted public settings for the extension.
required: false
protected_settings:
description:
- Json formatted protected settings for the extension.
required: false
auto_upgrade_minor_version:
description:
- Whether the extension handler should be automatically upgraded across minor versions.
required: false
type: bool
extends_documentation_fragment:
Expand Down Expand Up @@ -159,41 +150,32 @@ def __init__(self):
),
state=dict(
type='str',
required=False,
default='present',
choices=['present', 'absent']
),
location=dict(
type='str',
required=False
type='str'
),
virtual_machine_name=dict(
type='str',
required=False
type='str'
),
publisher=dict(
type='str',
required=False
type='str'
),
virtual_machine_extension_type=dict(
type='str',
required=False
type='str'
),
type_handler_version=dict(
type='str',
required=False
type='str'
),
auto_upgrade_minor_version=dict(
type='bool',
required=False
type='bool'
),
settings=dict(
type='dict',
required=False
type='dict'
),
protected_settings=dict(
type='dict',
required=False
type='dict'
)
)

Expand Down

0 comments on commit 8c48e1e

Please sign in to comment.