Add type int for various argument params (#55026)

Specify type as int for various arguments where default value is int.

Fixes: #55005

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-04-11 01:49:00 +05:30 committed by Sloane Hertel
parent dd3de27cc8
commit bea397b458
16 changed files with 21 additions and 21 deletions

View file

@ -381,7 +381,7 @@ def main():
default=False),
release_on_disassociation=dict(required=False, type='bool', default=False),
allow_reassociation=dict(type='bool', default=False),
wait_timeout=dict(default=300),
wait_timeout=dict(default=300, type='int'),
private_ip_address=dict(required=False, default=None, type='str')
))

View file

@ -249,7 +249,7 @@ def main():
force=dict(type='bool', default=True),
state=dict(default='present', choices=['present', 'absent']),
wait=dict(type='bool', default=False),
wait_timeout=dict(default=300)
wait_timeout=dict(default=300, type='int')
)
)

View file

@ -443,7 +443,7 @@ def main():
key_pair_name=dict(type='str'),
user_data=dict(type='str'),
wait=dict(type='bool', default=True),
wait_timeout=dict(default=300),
wait_timeout=dict(default=300, type='int'),
))
module = AnsibleModule(argument_spec=argument_spec)

View file

@ -534,8 +534,8 @@ class ClcServer:
group=dict(default='Default Group'),
network_id=dict(),
location=dict(default=None),
cpu=dict(default=1),
memory=dict(default=1),
cpu=dict(default=1, type='int'),
memory=dict(default=1, type='int'),
alias=dict(default=None),
password=dict(default=None, no_log=True),
ip_address=dict(default=None),

View file

@ -334,7 +334,7 @@ class ClcSnapshot:
"""
argument_spec = dict(
server_ids=dict(type='list', required=True),
expiration_days=dict(default=7),
expiration_days=dict(default=7, type='int'),
wait=dict(default=True),
state=dict(
default='present',

View file

@ -140,12 +140,12 @@ def main():
module = AnsibleModule(
argument_spec=dict(
httphealthcheck_name=dict(),
httphealthcheck_port=dict(default=80),
httphealthcheck_port=dict(default=80, type='int'),
httphealthcheck_path=dict(default='/'),
httphealthcheck_interval=dict(default=5),
httphealthcheck_timeout=dict(default=5),
httphealthcheck_unhealthy_count=dict(default=2),
httphealthcheck_healthy_count=dict(default=2),
httphealthcheck_interval=dict(default=5, type='int'),
httphealthcheck_timeout=dict(default=5, type='int'),
httphealthcheck_unhealthy_count=dict(default=2, type='int'),
httphealthcheck_healthy_count=dict(default=2, type='int'),
httphealthcheck_host=dict(),
name=dict(),
protocol=dict(default='tcp'),

View file

@ -605,7 +605,7 @@ def main():
ssh_pub_key=dict(type='str'),
swap=dict(type='int', default=512),
wait=dict(type='bool', default=True),
wait_timeout=dict(default=300),
wait_timeout=dict(type='int', default=300),
watchdog=dict(type='bool', default=True),
),
)

View file

@ -210,7 +210,7 @@ def main():
subscription_user=dict(),
subscription_password=dict(no_log=True),
wait=dict(type='bool', default=True),
wait_timeout=dict(default=600),
wait_timeout=dict(default=600, type='int'),
state=dict(default='present'),
)
)

View file

@ -820,7 +820,7 @@ def main():
state=dict(default='present', choices=['present', 'absent']),
user_data=dict(no_log=True),
wait=dict(default=False, type='bool'),
wait_timeout=dict(default=300),
wait_timeout=dict(default=300, type='int'),
)
)

View file

@ -272,7 +272,7 @@ def main():
type=dict(choices=['PUBLIC', 'SERVICENET'], default='PUBLIC'),
vip_id=dict(),
wait=dict(type='bool'),
wait_timeout=dict(default=300),
wait_timeout=dict(type='int', default=300),
)
)

View file

@ -376,7 +376,7 @@ def main():
state=dict(default='present', choices=['present', 'absent']),
user_data=dict(no_log=True),
wait=dict(default=False, type='bool'),
wait_timeout=dict(default=300),
wait_timeout=dict(default=300, type='int'),
)
)

View file

@ -2121,7 +2121,7 @@ def main():
description=dict(required=False, default=""),
fullpath=dict(required=False, default=None),
starttime=dict(required=False, default=None),
duration=dict(required=False, default=30),
duration=dict(required=False, default=30, type='int'),
properties=dict(required=False, default={}, type="dict"),
groups=dict(required=False, default=[], type="list"),
alertenable=dict(required=False, default="true", type="bool")

View file

@ -260,7 +260,7 @@ def main():
comment=dict(default='Scheduling downtime'),
host=dict(required=False, default=None),
servicegroup=dict(required=False, default=None),
minutes=dict(default=30),
minutes=dict(default=30, type='int'),
cmdfile=dict(default=which_cmdfile()),
services=dict(default=None, aliases=['service']),
command=dict(required=False, default=None),

View file

@ -268,7 +268,7 @@ def main():
temporary=dict(default=False, type='bool'),
state=dict(
default='present', choices=['absent', 'present', 'up', 'down', 'enabled', 'disabled', 'refreshed']),
wait=dict(default=60),
wait=dict(default=60, type='int'),
),
mutually_exclusive=[
('address', 'wait'),

View file

@ -178,7 +178,7 @@ def get_ping_results(command, module):
def main():
argument_spec = dict(
dest=dict(required=True),
count=dict(required=False, default=5),
count=dict(required=False, default=5, type='int'),
vrf=dict(required=False),
source=dict(required=False),
state=dict(required=False, choices=['present', 'absent'], default='present'),

View file

@ -103,7 +103,7 @@ def main():
to=dict(required=True),
msg=dict(required=True),
host=dict(required=False),
port=dict(required=False, default=5222),
port=dict(required=False, default=5222, type='int'),
encoding=dict(required=False),
),
supports_check_mode=True