You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UnboundLocalError when list_virtualmachines() on newly created api instance #17
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)?
Activity