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:
parent
73cf85d677
commit
0a85e64b4a
1 changed files with 4 additions and 5 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue