Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_ansible_host(config, inventory, host, ssh_config=None,
- ssh_identity_file=None):
- if is_empty_inventory(inventory):
- return testinfra.get_host('local://')
- hostvars = inventory['_meta'].get('hostvars', {}).get(host, {})
- connection = hostvars.get('ansible_connection', 'ssh')
- if connection not in ('ssh', 'local', 'docker', 'lxc', 'lxd'):
- wrote pytestdebug information to /roles/test-windows-config/molecule/windows/pytestdebug.log
- raise NotImplementedError(
- > 'unhandled ansible_connection {}'.format(connection))
- E NotImplementedError: unhandled ansible_connection winrm
- /usr/lib/python2.7/site-packages/testinfra/utils/ansible_runner.py:71: NotImplementedError
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement