From 199eb8364f73aedbf986f83c036894813b9fc043 Mon Sep 17 00:00:00 2001 From: jichenjc Date: Tue, 13 Feb 2018 15:38:23 +0800 Subject: [PATCH] Fix warn api_class is deprecated, use backend See a warning like Config option key_manager.api_class is deprecated. Use option key_manager.backend instead. it's because nova use castellan and castellan uses https://github.com/openstack/castellan/blob/master/castellan/key_manager/__init__.py#L25 so nova need to follow the change to avoid the warning. Change-Id: Ibfdb087e6421d55ceefd805f67550e668c86be61 --- nova/tests/unit/conf_fixture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/tests/unit/conf_fixture.py b/nova/tests/unit/conf_fixture.py index c037754362be..4fa40a79c1da 100644 --- a/nova/tests/unit/conf_fixture.py +++ b/nova/tests/unit/conf_fixture.py @@ -66,7 +66,7 @@ class ConfFixture(config_fixture.Config): self.conf.set_default('sqlite_synchronous', False, group='database') # key_manager group - self.conf.set_default('api_class', + self.conf.set_default('backend', 'nova.keymgr.conf_key_mgr.ConfKeyManager', group='key_manager')