From ddb3199318bf91e76b4c4e7330956ee581c91ccc Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 10 Apr 2013 00:59:03 +0200 Subject: Move get_backdoor_port to base rpc API. Each service implemented the get_backdoor_port method individually. This patch moves the implementation of this method to the base rpc API instead, and removes the now unnecessary code from each of the services. The server side method was left on all of the managers for rpc backwards copmatibility. They can be removed on the next major rpc version bump of those APIs. Part of blueprint base-rpc-api. Change-Id: Ia8838fafd80eb86a1c2d66f5e97370042d8d8c53 --- nova/scheduler/manager.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova/scheduler/manager.py') diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py index 94438a2cd..8fd89858d 100644 --- a/nova/scheduler/manager.py +++ b/nova/scheduler/manager.py @@ -291,6 +291,8 @@ class SchedulerManager(manager.Manager): def _expire_reservations(self, context): QUOTAS.expire(context) + # NOTE(russellb) This method can be removed in 3.0 of this API. It is + # deprecated in favor of the method in the base API. def get_backdoor_port(self, context): return self.backdoor_port -- cgit