summaryrefslogtreecommitdiffstats
path: root/nova/virt
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-06-18 17:02:28 +0000
committerGerrit Code Review <review@openstack.org>2012-06-18 17:02:28 +0000
commit6279e16ae1693cd3cae4f0b30e9412052ca356ab (patch)
treeb517fe82b4e4b5612716d8331a4848f66d7b9a72 /nova/virt
parent5bfa8a70e8b11f68deb101c872eace27d7a3b1b4 (diff)
parentadc66644c4d1a4c6e5cd6a26394cf8b48620d99e (diff)
Merge "added deprecated.warn helper method"
Diffstat (limited to 'nova/virt')
-rw-r--r--nova/virt/connection.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/virt/connection.py b/nova/virt/connection.py
index c792ff966..0c7c3bd0a 100644
--- a/nova/virt/connection.py
+++ b/nova/virt/connection.py
@@ -21,6 +21,7 @@
import sys
+from nova.common import deprecated
from nova import exception
from nova import flags
from nova import log as logging
@@ -66,7 +67,8 @@ def get_connection(read_only=False):
* baremetal
"""
- LOG.warning(_('Specifying virt driver via connection_type is deprecated'))
+ deprecated.warn(_('Specifying virt driver via connection_type is '
+ 'deprecated. Use compute_driver=classname instead.'))
driver_name = known_drivers.get(FLAGS.connection_type)