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

TypeError: __call__() takes from 1 to 2 positional arguments but 7 were given #62

Open
shibumi opened this issue Nov 23, 2018 · 2 comments

Comments

@shibumi
Copy link

shibumi commented Nov 23, 2018

I have the following code:

proxmox.get('nodes', node['node'], 'qemu', vm['vmid'], 'config', 'description')                

shouldn't this work? I try to get the information in /nodes/<node>/qemu/<vmid>/config/description, but instead I get this TypeError Exception:

2018-11-23 16:23:44,652 DEBUG:paramiko.transport: [chan 1] EOF sent (1)          
  File "proxmox-dokuwiki-exporter.py", line 36, in <module>                      
    'description')                                                               
TypeError: __call__() takes from 1 to 2 positional arguments but 7 were given    
@shibumi
Copy link
Author

shibumi commented Nov 23, 2018

I tried to follow your README, where you do something like this: proxmox.get('nodes', node['node'], 'openvz') and there you have more than 2 arguments as well...

It would be really nice if you could setup some documentation for your code that is more than the few examples in your README. Thanks a lot!

@shibumi
Copy link
Author

shibumi commented Jan 7, 2019

I have tested your README... looks like your examples in the README fail as well with: TypeError: __call__() takes from 1 to 2 positional arguments but 4 were given

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant