summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorjaypipes@gmail.com <>2010-10-04 16:51:03 -0400
committerjaypipes@gmail.com <>2010-10-04 16:51:03 -0400
commitf8c64fba51c1ca93c612d84bb9f303c8f2ff2fed (patch)
tree1971c05189888135699ee1ad7c8aa05481160ce5 /bin
parent32bd6c198a4ed96768649f58628e22fb25a95855 (diff)
parent44d9fac26aff296f2846b00df98ddaf646c52158 (diff)
downloadnova-f8c64fba51c1ca93c612d84bb9f303c8f2ff2fed.tar.gz
nova-f8c64fba51c1ca93c612d84bb9f303c8f2ff2fed.tar.xz
nova-f8c64fba51c1ca93c612d84bb9f303c8f2ff2fed.zip
Merge trunk
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index bf3c67612..5b72c170f 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -52,6 +52,7 @@
CLI interface for nova management.
"""
+import logging
import os
import sys
import time
@@ -114,7 +115,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']
@@ -417,6 +418,10 @@ def main():
"""Parse options and call the appropriate class/method."""
utils.default_flagfile('/etc/nova/nova-manage.conf')
argv = FLAGS(sys.argv)
+
+ if FLAGS.verbose:
+ logging.getLogger().setLevel(logging.DEBUG)
+
script_name = argv.pop(0)
if len(argv) < 1:
print script_name + " category action [<args>]"