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

UnboundLocalError when list_virtualmachines() on newly created api instance #17

Open
bryan-brancotte opened this issue Nov 28, 2016 · 0 comments

Comments

@bryan-brancotte
Copy link
Contributor

When doing this

api = Api(config["endpoint"], insecure=True)
api.login(config["username"], config["password"])
for o in api.list_virtualmachines():
    print o

It fails because the api wants to have _deployment_id with a value. As it makes sense to refuse to list all VMs without filtering on the deployment id, could we just remove the default value for parameter deployment_id=None to make it clearer ? Or is it that you want the api to keep track of the previously provided deployment_id (I prefer the first option)?

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