Add comments re RPC versions being in sync

place it to remind to keep it in sync there too.

Change-Id: I745b4b14d6217030a463a9a343eee139d8e155b3
Related-Bug: #1526283
This commit is contained in:
Pavlo Shchelokovskyy 2017-04-11 06:32:27 +00:00
parent 1fcb6c52a2
commit d8438df350
2 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,8 @@ class ConductorManager(base_manager.BaseConductorManager):
"""Ironic Conductor manager main class."""
# NOTE(rloo): This must be in sync with rpcapi.ConductorAPI's.
# NOTE(pas-ha): This also must be in sync with
# ironic.common.release_mappings.RELEASE_MAPPING['master']
RPC_API_VERSION = '1.40'
target = messaging.Target(version=RPC_API_VERSION)

View File

@ -93,6 +93,8 @@ class ConductorAPI(object):
"""
# NOTE(rloo): This must be in sync with manager.ConductorManager's.
# NOTE(pas-ha): This also must be in sync with
# ironic.common.release_mappings.RELEASE_MAPPING['master']
RPC_API_VERSION = '1.40'
def __init__(self, topic=None):