vos_config collection fix using FQCN (#60446)

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>
This commit is contained in:
Paul Belanger 2019-08-21 13:30:49 -04:00 committed by GitHub
parent ab027611d5
commit 4615139194
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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':