summaryrefslogtreecommitdiff
path: root/novaclient/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/client.py')
-rw-r--r--novaclient/client.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/novaclient/client.py b/novaclient/client.py
index f7ac870..399d98e 100644
--- a/novaclient/client.py
+++ b/novaclient/client.py
@@ -30,6 +30,7 @@ import logging
30import os 30import os
31import pkgutil 31import pkgutil
32import re 32import re
33import warnings
33 34
34from keystoneclient import adapter 35from keystoneclient import adapter
35from keystoneclient import session 36from keystoneclient import session
@@ -48,7 +49,7 @@ from six.moves.urllib import parse
48from novaclient import api_versions 49from novaclient import api_versions
49from novaclient import exceptions 50from novaclient import exceptions
50from novaclient import extension as ext 51from novaclient import extension as ext
51from novaclient.i18n import _ 52from novaclient.i18n import _, _LW
52from novaclient import service_catalog 53from novaclient import service_catalog
53from novaclient import utils 54from novaclient import utils
54 55
@@ -780,6 +781,8 @@ def _get_client_class_and_version(version):
780 781
781def get_client_class(version): 782def get_client_class(version):
782 """Returns Client class based on given version.""" 783 """Returns Client class based on given version."""
784 warnings.warn(_LW("'get_client_class' is deprecated. "
785 "Please use `novaclient.client.Client` instead."))
783 _api_version, client_class = _get_client_class_and_version(version) 786 _api_version, client_class = _get_client_class_and_version(version)
784 return client_class 787 return client_class
785 788