mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add missing defaults
This commit is contained in:
parent
7454038d82
commit
6aa3210eb0
1 changed files with 4 additions and 0 deletions
|
@ -330,6 +330,8 @@ def main():
|
|||
if port is None:
|
||||
port = cur_ipport['ipport']['port']
|
||||
else: # use API defaults if not defined to create it
|
||||
if interval is None: interval = 5
|
||||
if timeout is None: timeout = 16
|
||||
if ip is None: ip = '0.0.0.0'
|
||||
if port is None: port = 0
|
||||
if send is None: send = ''
|
||||
|
@ -351,6 +353,8 @@ def main():
|
|||
'port': port}}
|
||||
|
||||
template_attributes = {'parent_template': parent,
|
||||
'interval': interval,
|
||||
'timeout': timeout,
|
||||
'dest_ipport': ipport,
|
||||
'is_read_only': False,
|
||||
'is_directly_usable': True}
|
||||
|
|
Loading…
Reference in a new issue