diff options
| author | omnom62 <omnom62@outlook.com> | 2026-03-06 07:38:15 +1000 |
|---|---|---|
| committer | omnom62 <omnom62@outlook.com> | 2026-03-06 07:38:15 +1000 |
| commit | de3d09eaa33d3553e656362ee398d0848c2fad01 (patch) | |
| tree | 2b56ddad4ce847db33d547d3d2e3dcb5a87726fc /plugins/module_utils | |
| parent | 63cde943cd57ef999e1c6f6edfec677e099f39f9 (diff) | |
| download | rest.vyos-de3d09eaa33d3553e656362ee398d0848c2fad01.tar.gz rest.vyos-de3d09eaa33d3553e656362ee398d0848c2fad01.zip | |
Auto-save fix
Diffstat (limited to 'plugins/module_utils')
| -rw-r--r-- | plugins/module_utils/vyos.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/module_utils/vyos.py b/plugins/module_utils/vyos.py index aa17a9f..40926d5 100644 --- a/plugins/module_utils/vyos.py +++ b/plugins/module_utils/vyos.py @@ -155,10 +155,12 @@ class VyOSModule: commands=payload_commands ) + self.save_config() + self.module.exit_json( changed=True, commands=commands, - response=response + response=response, ) # # Delete config @@ -174,4 +176,13 @@ class VyOSModule: changed=True, commands=cmds, response=response - )
\ No newline at end of file + ) + + def save_config(self): + + response = self._send( + path="/config-file", + op="save" + ) + + return True
\ No newline at end of file |
