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.
reviewable/pr18780/r1
Peter Sprygada 8 years ago committed by GitHub
parent 340ff31075
commit f3a2fb3dae

@ -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…
Cancel
Save