app/repository/providers/ansible/auth_ssh.py
from app.services.connector.auth_ssh import AuthSSH
from app.error.clientMaestroError import ClientMaestroError
class AnsibleSSH(AuthSSH):
def execute(self, resource):
results = []
try:
output = self.exec_command('find %s -type f' % self._access.get('path'))
for line in output:
json = self.make_result(line)
if json:
results.append(json)
return results
except Exception as error:
raise ClientMaestroError(error)