vtsingaras / xenorchestra_inventory

Ansible dynamic inventory source for Xen Orchestra (https://xen-orchestra.com/).
GNU General Public License v3.0
1 stars 0 forks source link

SyntaxError: invalid syntax #1

Open kirovtome opened 3 years ago

kirovtome commented 3 years ago

Hi,

I'm running the script using python 3.8 and I'm currently stuck on this issue. i would appreciate if you could look into this one.

`[WARNING]: * Failed to parse /etc/ansible/xenorchestra.py with script plugin: Inventory script (/etc/ansible/xenorchestra.py) had an execution error: Traceback (most recent call last): File "/etc/ansible/xenorchestra.py", line 130, in xoa = xo('ws://' + xoa_host, *login_args) File "/home/ansible/.local/lib/python3.8/site-packages/synthetic/synthetic_constructor_factory.py", line 79, in init originalConstructor(instance, args, *kwargs) File "/home/ansible/.local/lib/python3.8/site-packages/xolib/xo.py", line 45, in init self._learn_methods() File "/home/ansible/.local/lib/python3.8/site-packages/xolib/xo.py", line 81, in _learn_methods patch_method_in(self, method_code) File "/home/ansible/.local/lib/python3.8/site-packages/xolib/utils.py", line 7, in patch_method_in exec(method_code, None, ld) File "", line 1 def backupNg_getLogs(self, , after=None, before=None, limit=None, ): return self.call('backupNg.getLogs', after=after, before=before, limit=limit, =*) ^ SyntaxError: invalid syntax

[WARNING]: * Failed to parse /etc/ansible/xenorchestra.py with ini plugin: /etc/ansible/xenorchestra.py:3: Expected key=value host variable assignment, got: xolib

[WARNING]: Unable to parse /etc/ansible/xenorchestra.py as an inventory source

[WARNING]: No inventory was parsed, only implicit localhost is available

[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'`

kirovtome commented 3 years ago

Screenshot from 2020-08-18 13-29-12

luizhpriotto commented 3 years ago

I have the same error =(