pyinfra: pyinfra error: No such group: __file__
Describe the bug
Simple ad-hoc command failed with error. I didn’t create inventory file, just run this ad-hoc command from bash shell in any directory.
$ pyinfra --debug --user=root 192.168.0.115 exec -- echo
--> Loading config...
--> Loading inventory...
[pyinfra_cli.inventory] Creating fake inventory...
--> Connecting to hosts...
[pyinfra.api.connectors.ssh] Connecting to: 192.168.0.115 ({'allow_agent': True, 'look_for_keys': True, 'username': 'root', 'timeout': 10})
[192.168.0.115] Connected
[pyinfra.api.state] Activating host: 192.168.0.115
Use of Inventory.<group_name> is deprecated, please use `Inventory.get_group` instead.
--> pyinfra error: No such group: __file__
Meta
- Include output of
pyinfra --support.
OS: macOS 10.15.5
$ pyinfra --support
--> Support information:
If you are having issues with pyinfra or wish to make feature requests, please
check out the GitHub issues at https://github.com/Fizzadar/pyinfra/issues .
When adding an issue, be sure to include the following:
System: Darwin
Platform: Darwin-19.5.0-x86_64-i386-64bit
Release: 19.5.0
Machine: x86_64
pyinfra: v0.14.5
Executable: /usr/local/bin/pyinfra
Python: 3.7.3 (CPython, Clang 11.0.3 (clang-1103.0.32.62))
- How was pyinfra installed (source/pip)?
pip.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (9 by maintainers)
0.15.dev0 works for me. Thanks @Fizzadar 😃