Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.2.0 breaks ansible tss lookup plugin #9

Closed
tomreeb opened this issue Aug 23, 2022 · 4 comments
Closed

1.2.0 breaks ansible tss lookup plugin #9

tomreeb opened this issue Aug 23, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@tomreeb
Copy link

tomreeb commented Aug 23, 2022

Since 1.2.0 was released, the Ansible Lookup Plugin, community.general.tss, no longer works. When running a previously working (with 1.1.0) playbook I receive the following error:

TASK [lookup value for ansible_user] *******************************************
task path: /__w/54/s/big_switch_backup.yml:11
exception during Jinja2 execution: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/ansible/template/__init__.py", line 1032, in _lookup
    ran = instance.run(loop_terms, variables=self._available_variables, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/ansible_collections/community/general/plugins/lookup/tss.py", line 271, in run
    raise AnsibleError("python-tss-sdk must be installed to use this plugin")
ansible.errors.AnsibleError: python-tss-sdk must be installed to use this plugin
fatal: [localhost]: FAILED! => {
    "msg": "An unhandled exception occurred while templating '{{ lookup('community.general.tss', 27318) }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while running the lookup plugin 'community.general.tss'. Error was a <class 'ansible.errors.AnsibleError'>, original message: python-tss-sdk must be installed to use this plugin. python-tss-sdk must be installed to use this plugin"
}
@tylerezimmerman tylerezimmerman self-assigned this Aug 23, 2022
@tylerezimmerman tylerezimmerman added the bug Something isn't working label Aug 23, 2022
@tylerezimmerman
Copy link
Contributor

@tomreeb we believe we have located the issue and are working on a fix. Will update this thread with more info once we run some tests.

@tomreeb
Copy link
Author

tomreeb commented Aug 23, 2022

Thanks @tylerezimmerman! I've submitted ansible-collections/community.general#5151 to fix this.

@tylerezimmerman
Copy link
Contributor

@tomreeb thanks for your help on this! Looks like your code was merged in ansible-collections/community.general#5151. Can this issue be considered Resolved?

@tomreeb
Copy link
Author

tomreeb commented Aug 23, 2022

Yes this is now resolved. Thank you for your support!

@tomreeb tomreeb closed this as completed Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants