Merge "Add comments re RPC versions being in sync"

This commit is contained in:
Jenkins 2017-04-11 19:04:23 +00:00 committed by Gerrit Code Review
commit c5531772af
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):