summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEwan Mellor <emellor@silver>2010-10-03 12:41:07 +0100
committerEwan Mellor <emellor@silver>2010-10-03 12:41:07 +0100
commit65e2bbc31a7e4ea5d8f9456c2ea5b54715305d11 (patch)
tree7ea578421ad1967da27121cde927a29f17a3cbe6
parent4d13a8554459638387d772a23fffe6aaaab3348d (diff)
downloadnova-65e2bbc31a7e4ea5d8f9456c2ea5b54715305d11.tar.gz
nova-65e2bbc31a7e4ea5d8f9456c2ea5b54715305d11.tar.xz
nova-65e2bbc31a7e4ea5d8f9456c2ea5b54715305d11.zip
Bug #654023: nova-manage vpn commands broken, resulting in erroneous "Wrong number of arguments supplied" message
Add a context of None to the call to db.instance_get_all. This is deprecated, but it's what all the other calls in this file do, and it's better than exploding, so it will do for now.
-rwxr-xr-xbin/nova-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index bf3c67612..0b5869dfd 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -114,7 +114,7 @@ class VpnCommands(object):
def _vpn_for(self, project_id):
"""Get the VPN instance for a project ID."""
- for instance in db.instance_get_all():
+ for instance in db.instance_get_all(None):
if (instance['image_id'] == FLAGS.vpn_image_id
and not instance['state_description'] in
['shutting_down', 'shutdown']