From b9807c06485a231cde5ec4df40883dbce53b6bd7 Mon Sep 17 00:00:00 2001 From: Andrey Kurilin <akurilin@mirantis.com> Date: Fri, 1 Apr 2016 14:45:12 +0300 Subject: [PATCH] Switch to 2.1 default api_version in v2.Client Direct initialization of versioned clients is restricted, but we tries to decrease the number of possible bugs and issues, so default value for api_version was added to v2.Client . Let's set it to 2.1, since 2.0 is too old API version. Change-Id: If127f858f7f670a090a57267f46a69ea4c056cce --- novaclient/v2/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/novaclient/v2/client.py b/novaclient/v2/client.py index 56339a346..64a1458e1 100644 --- a/novaclient/v2/client.py +++ b/novaclient/v2/client.py @@ -131,7 +131,7 @@ class Client(object): self.limits = limits.LimitsManager(self) self.servers = servers.ServerManager(self) self.versions = versions.VersionManager(self) - self.api_version = api_version or api_versions.APIVersion("2.0") + self.api_version = api_version or api_versions.APIVersion("2.1") # extensions self.agents = agents.AgentsManager(self)