From 419774453a5aca409a2d7bbc6a287aaf08f02e8b Mon Sep 17 00:00:00 2001 From: Hironori Shiina Date: Mon, 14 May 2018 19:44:20 +0900 Subject: [PATCH] Fix tenant DeprecationWarning from oslo_context This removes a deprecation warning as a follow up for Ie555a5c554356c04d929fce972b061f720701355. Error: DeprecationWarning: Using the 'tenant' argument is deprecated in version '2.18' and will be removed in version '3.0', please use the 'project_id' argument instead Change-Id: I34236ea30b9a14b8c72495e738476272b56910ce --- ironic/tests/unit/common/test_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ironic/tests/unit/common/test_context.py b/ironic/tests/unit/common/test_context.py index 08d8fcbcbe..eb035deb6b 100644 --- a/ironic/tests/unit/common/test_context.py +++ b/ironic/tests/unit/common/test_context.py @@ -23,7 +23,7 @@ class RequestContextTestCase(tests_base.TestCase): self.context_dict = { 'auth_token': 'auth_token1', "user": "user1", - "tenant": "tenant1", + "project_id": "project1", "project_name": "somename", 'is_admin': True, 'read_only': True,