removes requirement for config argument to be specified in junos_facts
The config argument is optional and should not be required. This removes the required attribute from the config argument. fixes #3878
This commit is contained in:
parent
7747be71b4
commit
d8cb09a121
1 changed files with 4 additions and 4 deletions
|
@ -37,8 +37,8 @@ options:
|
|||
is then included in return facts. By default, the configuration
|
||||
is returned as text. The C(config_format) can be used to return
|
||||
different Junos configuration formats.
|
||||
required: true
|
||||
default: false
|
||||
required: false
|
||||
default: null
|
||||
config_format:
|
||||
description:
|
||||
- The C(config_format) argument is used to specify the desired
|
||||
|
@ -90,7 +90,7 @@ def main():
|
|||
""" Main entry point for AnsibleModule
|
||||
"""
|
||||
spec = dict(
|
||||
config=dict(required=True, type='bool'),
|
||||
config=dict(type='bool'),
|
||||
config_format=dict(default='text', choices=['xml', 'set', 'text']),
|
||||
transport=dict(default='netconf', choices=['netconf'])
|
||||
)
|
||||
|
@ -108,7 +108,7 @@ def main():
|
|||
|
||||
facts['version_info'] = dict(facts['version_info'])
|
||||
|
||||
if module.params['config']:
|
||||
if module.params['config'] is True:
|
||||
config_format = module.params['config_format']
|
||||
resp_config = module.get_config( config_format=config_format)
|
||||
|
||||
|
|
Loading…
Reference in a new issue