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:
parent
dd3de27cc8
commit
bea397b458
16 changed files with 21 additions and 21 deletions
|
@ -381,7 +381,7 @@ def main():
|
||||||
default=False),
|
default=False),
|
||||||
release_on_disassociation=dict(required=False, type='bool', default=False),
|
release_on_disassociation=dict(required=False, type='bool', default=False),
|
||||||
allow_reassociation=dict(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')
|
private_ip_address=dict(required=False, default=None, type='str')
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
|
@ -249,7 +249,7 @@ def main():
|
||||||
force=dict(type='bool', default=True),
|
force=dict(type='bool', default=True),
|
||||||
state=dict(default='present', choices=['present', 'absent']),
|
state=dict(default='present', choices=['present', 'absent']),
|
||||||
wait=dict(type='bool', default=False),
|
wait=dict(type='bool', default=False),
|
||||||
wait_timeout=dict(default=300)
|
wait_timeout=dict(default=300, type='int')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -443,7 +443,7 @@ def main():
|
||||||
key_pair_name=dict(type='str'),
|
key_pair_name=dict(type='str'),
|
||||||
user_data=dict(type='str'),
|
user_data=dict(type='str'),
|
||||||
wait=dict(type='bool', default=True),
|
wait=dict(type='bool', default=True),
|
||||||
wait_timeout=dict(default=300),
|
wait_timeout=dict(default=300, type='int'),
|
||||||
))
|
))
|
||||||
|
|
||||||
module = AnsibleModule(argument_spec=argument_spec)
|
module = AnsibleModule(argument_spec=argument_spec)
|
||||||
|
|
|
@ -534,8 +534,8 @@ class ClcServer:
|
||||||
group=dict(default='Default Group'),
|
group=dict(default='Default Group'),
|
||||||
network_id=dict(),
|
network_id=dict(),
|
||||||
location=dict(default=None),
|
location=dict(default=None),
|
||||||
cpu=dict(default=1),
|
cpu=dict(default=1, type='int'),
|
||||||
memory=dict(default=1),
|
memory=dict(default=1, type='int'),
|
||||||
alias=dict(default=None),
|
alias=dict(default=None),
|
||||||
password=dict(default=None, no_log=True),
|
password=dict(default=None, no_log=True),
|
||||||
ip_address=dict(default=None),
|
ip_address=dict(default=None),
|
||||||
|
|
|
@ -334,7 +334,7 @@ class ClcSnapshot:
|
||||||
"""
|
"""
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
server_ids=dict(type='list', required=True),
|
server_ids=dict(type='list', required=True),
|
||||||
expiration_days=dict(default=7),
|
expiration_days=dict(default=7, type='int'),
|
||||||
wait=dict(default=True),
|
wait=dict(default=True),
|
||||||
state=dict(
|
state=dict(
|
||||||
default='present',
|
default='present',
|
||||||
|
|
|
@ -140,12 +140,12 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
httphealthcheck_name=dict(),
|
httphealthcheck_name=dict(),
|
||||||
httphealthcheck_port=dict(default=80),
|
httphealthcheck_port=dict(default=80, type='int'),
|
||||||
httphealthcheck_path=dict(default='/'),
|
httphealthcheck_path=dict(default='/'),
|
||||||
httphealthcheck_interval=dict(default=5),
|
httphealthcheck_interval=dict(default=5, type='int'),
|
||||||
httphealthcheck_timeout=dict(default=5),
|
httphealthcheck_timeout=dict(default=5, type='int'),
|
||||||
httphealthcheck_unhealthy_count=dict(default=2),
|
httphealthcheck_unhealthy_count=dict(default=2, type='int'),
|
||||||
httphealthcheck_healthy_count=dict(default=2),
|
httphealthcheck_healthy_count=dict(default=2, type='int'),
|
||||||
httphealthcheck_host=dict(),
|
httphealthcheck_host=dict(),
|
||||||
name=dict(),
|
name=dict(),
|
||||||
protocol=dict(default='tcp'),
|
protocol=dict(default='tcp'),
|
||||||
|
|
|
@ -605,7 +605,7 @@ def main():
|
||||||
ssh_pub_key=dict(type='str'),
|
ssh_pub_key=dict(type='str'),
|
||||||
swap=dict(type='int', default=512),
|
swap=dict(type='int', default=512),
|
||||||
wait=dict(type='bool', default=True),
|
wait=dict(type='bool', default=True),
|
||||||
wait_timeout=dict(default=300),
|
wait_timeout=dict(type='int', default=300),
|
||||||
watchdog=dict(type='bool', default=True),
|
watchdog=dict(type='bool', default=True),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -210,7 +210,7 @@ def main():
|
||||||
subscription_user=dict(),
|
subscription_user=dict(),
|
||||||
subscription_password=dict(no_log=True),
|
subscription_password=dict(no_log=True),
|
||||||
wait=dict(type='bool', default=True),
|
wait=dict(type='bool', default=True),
|
||||||
wait_timeout=dict(default=600),
|
wait_timeout=dict(default=600, type='int'),
|
||||||
state=dict(default='present'),
|
state=dict(default='present'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -820,7 +820,7 @@ def main():
|
||||||
state=dict(default='present', choices=['present', 'absent']),
|
state=dict(default='present', choices=['present', 'absent']),
|
||||||
user_data=dict(no_log=True),
|
user_data=dict(no_log=True),
|
||||||
wait=dict(default=False, type='bool'),
|
wait=dict(default=False, type='bool'),
|
||||||
wait_timeout=dict(default=300),
|
wait_timeout=dict(default=300, type='int'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -272,7 +272,7 @@ def main():
|
||||||
type=dict(choices=['PUBLIC', 'SERVICENET'], default='PUBLIC'),
|
type=dict(choices=['PUBLIC', 'SERVICENET'], default='PUBLIC'),
|
||||||
vip_id=dict(),
|
vip_id=dict(),
|
||||||
wait=dict(type='bool'),
|
wait=dict(type='bool'),
|
||||||
wait_timeout=dict(default=300),
|
wait_timeout=dict(type='int', default=300),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -376,7 +376,7 @@ def main():
|
||||||
state=dict(default='present', choices=['present', 'absent']),
|
state=dict(default='present', choices=['present', 'absent']),
|
||||||
user_data=dict(no_log=True),
|
user_data=dict(no_log=True),
|
||||||
wait=dict(default=False, type='bool'),
|
wait=dict(default=False, type='bool'),
|
||||||
wait_timeout=dict(default=300),
|
wait_timeout=dict(default=300, type='int'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2121,7 +2121,7 @@ def main():
|
||||||
description=dict(required=False, default=""),
|
description=dict(required=False, default=""),
|
||||||
fullpath=dict(required=False, default=None),
|
fullpath=dict(required=False, default=None),
|
||||||
starttime=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"),
|
properties=dict(required=False, default={}, type="dict"),
|
||||||
groups=dict(required=False, default=[], type="list"),
|
groups=dict(required=False, default=[], type="list"),
|
||||||
alertenable=dict(required=False, default="true", type="bool")
|
alertenable=dict(required=False, default="true", type="bool")
|
||||||
|
|
|
@ -260,7 +260,7 @@ def main():
|
||||||
comment=dict(default='Scheduling downtime'),
|
comment=dict(default='Scheduling downtime'),
|
||||||
host=dict(required=False, default=None),
|
host=dict(required=False, default=None),
|
||||||
servicegroup=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()),
|
cmdfile=dict(default=which_cmdfile()),
|
||||||
services=dict(default=None, aliases=['service']),
|
services=dict(default=None, aliases=['service']),
|
||||||
command=dict(required=False, default=None),
|
command=dict(required=False, default=None),
|
||||||
|
|
|
@ -268,7 +268,7 @@ def main():
|
||||||
temporary=dict(default=False, type='bool'),
|
temporary=dict(default=False, type='bool'),
|
||||||
state=dict(
|
state=dict(
|
||||||
default='present', choices=['absent', 'present', 'up', 'down', 'enabled', 'disabled', 'refreshed']),
|
default='present', choices=['absent', 'present', 'up', 'down', 'enabled', 'disabled', 'refreshed']),
|
||||||
wait=dict(default=60),
|
wait=dict(default=60, type='int'),
|
||||||
),
|
),
|
||||||
mutually_exclusive=[
|
mutually_exclusive=[
|
||||||
('address', 'wait'),
|
('address', 'wait'),
|
||||||
|
|
|
@ -178,7 +178,7 @@ def get_ping_results(command, module):
|
||||||
def main():
|
def main():
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
dest=dict(required=True),
|
dest=dict(required=True),
|
||||||
count=dict(required=False, default=5),
|
count=dict(required=False, default=5, type='int'),
|
||||||
vrf=dict(required=False),
|
vrf=dict(required=False),
|
||||||
source=dict(required=False),
|
source=dict(required=False),
|
||||||
state=dict(required=False, choices=['present', 'absent'], default='present'),
|
state=dict(required=False, choices=['present', 'absent'], default='present'),
|
||||||
|
|
|
@ -103,7 +103,7 @@ def main():
|
||||||
to=dict(required=True),
|
to=dict(required=True),
|
||||||
msg=dict(required=True),
|
msg=dict(required=True),
|
||||||
host=dict(required=False),
|
host=dict(required=False),
|
||||||
port=dict(required=False, default=5222),
|
port=dict(required=False, default=5222, type='int'),
|
||||||
encoding=dict(required=False),
|
encoding=dict(required=False),
|
||||||
),
|
),
|
||||||
supports_check_mode=True
|
supports_check_mode=True
|
||||||
|
|
Loading…
Reference in a new issue