mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
fixes exception raised due to KeyError (#5068)
The vyos_config module would error when looking for a key called `updates` in module.params. There is no such key. This fixes the problem.
This commit is contained in:
committed by
Matt Clay
parent
73cf85d677
commit
0a85e64b4a
@@ -244,12 +244,11 @@ def run(module, result):
|
||||
|
||||
result['updates'] = updates
|
||||
|
||||
if module.params['update'] != 'check':
|
||||
load_config(module, updates, result)
|
||||
load_config(module, updates, result)
|
||||
|
||||
if result.get('filtered'):
|
||||
result['warnings'].append('Some configuration commands where '
|
||||
'removed, please see the filtered key')
|
||||
if result.get('filtered'):
|
||||
result['warnings'].append('Some configuration commands where '
|
||||
'removed, please see the filtered key')
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user