From d2452dae6e780787dcf6685632d59d433a490307 Mon Sep 17 00:00:00 2001 From: Armando Migliaccio Date: Mon, 13 Feb 2012 15:59:44 +0000 Subject: bug 931356: nova-manage prints libvirt related warnings if libvirt isn't installed move flag declaration close to where it is used. Change-Id: I88c3d1362a9de5ea559411e80c1e5bc79bd1a614 --- bin/nova-manage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/nova-manage b/bin/nova-manage index 6a51f1102..ea2b82b08 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -106,7 +106,6 @@ flags.DECLARE('vlan_start', 'nova.network.manager') flags.DECLARE('vpn_start', 'nova.network.manager') flags.DECLARE('default_floating_pool', 'nova.network.manager') flags.DECLARE('public_interface', 'nova.network.linux_net') -flags.DECLARE('libvirt_type', 'nova.virt.libvirt.connection') # Decorators for actions @@ -998,6 +997,7 @@ class VmCommands(object): ctxt = context.get_admin_context() instance_id = ec2utils.ec2_id_to_id(ec2_id) + flags.DECLARE('libvirt_type', 'nova.virt.libvirt.connection') if (FLAGS.connection_type != 'libvirt' or (FLAGS.connection_type == 'libvirt' and FLAGS.libvirt_type not in ['kvm', 'qemu'])): -- cgit