diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-06-18 17:02:28 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-06-18 17:02:28 +0000 |
| commit | 6279e16ae1693cd3cae4f0b30e9412052ca356ab (patch) | |
| tree | b517fe82b4e4b5612716d8331a4848f66d7b9a72 /nova/virt | |
| parent | 5bfa8a70e8b11f68deb101c872eace27d7a3b1b4 (diff) | |
| parent | adc66644c4d1a4c6e5cd6a26394cf8b48620d99e (diff) | |
Merge "added deprecated.warn helper method"
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/connection.py | 4 |
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) |
