From a0fe37e189948b74ee8c2f8ec529ca175efc8449 Mon Sep 17 00:00:00 2001 From: TerryHowe Date: Mon, 13 Apr 2015 16:21:50 -0600 Subject: Add warning message if unknown version supplied Print a warning message if an unknown api version is supplied. An attempt will be made to run the command anyway. Change-Id: Idec8e88fe9621f10ec4b7eecd90708fb3730f56f --- openstackclient/compute/client.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openstackclient/compute/client.py') diff --git a/openstackclient/compute/client.py b/openstackclient/compute/client.py index 7ca08a4f..bdba4dca 100644 --- a/openstackclient/compute/client.py +++ b/openstackclient/compute/client.py @@ -30,6 +30,9 @@ LOG = logging.getLogger(__name__) DEFAULT_COMPUTE_API_VERSION = '2' API_VERSION_OPTION = 'os_compute_api_version' API_NAME = 'compute' +API_VERSIONS = { + "2": "novaclient.client", +} def make_client(instance): -- cgit v1.2.1