diff options
author | Nilashish Chakraborty <nilashishchakraborty8@gmail.com> | 2020-07-28 20:57:08 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 15:27:08 +0000 |
commit | 1795b189f7a3ca83ff3c67e189cfd1c83cc4b433 (patch) | |
tree | 0e40b8b55f0fea4d4af3bf9a8cec28a875cd1d3b /plugins | |
parent | fbb82a0875dacc8200d3f663c3286104d0a1afbf (diff) | |
download | vyos.vyos-1795b189f7a3ca83ff3c67e189cfd1c83cc4b433.tar.gz vyos.vyos-1795b189f7a3ca83ff3c67e189cfd1c83cc4b433.zip |
Make config modules work properly when module alias is used in task (#67)
Make config modules work properly when module alias is used in task
Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/action/vyos.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/action/vyos.py b/plugins/action/vyos.py index cab2f3f..9519d36 100644 --- a/plugins/action/vyos.py +++ b/plugins/action/vyos.py @@ -42,7 +42,9 @@ class ActionModule(ActionNetworkModule): del tmp # tmp no longer has any effect module_name = self._task.action.split(".")[-1] - self._config_module = True if module_name == "vyos_config" else False + self._config_module = ( + True if module_name in ["vyos_config", "config"] else False + ) persistent_connection = self._play_context.connection.split(".")[-1] warnings = [] |