Skip to content

Commit

Permalink
vos_config collection fix using FQCN (#60446)
Browse files Browse the repository at this point in the history
This deals with hardcoded vos_config in our vyos action plugin. Needed
for when we move to collections.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
  • Loading branch information
pabelanger committed Aug 21, 2019
1 parent ab02761 commit 4615139
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ansible/plugins/action/vyos.py
Expand Up @@ -38,7 +38,8 @@ class ActionModule(ActionNetworkModule):
def run(self, tmp=None, task_vars=None):
del tmp # tmp no longer has any effect

self._config_module = True if self._task.action == 'vyos_config' else False
module_name = self._task.action.split('.')[-1]
self._config_module = True if module_name == 'vyos_config' else False
socket_path = None

if self._play_context.connection == 'network_cli':
Expand Down

0 comments on commit 4615139

Please sign in to comment.