87f0229e87
The current implementation of trove conductor hard-codes the conductor manager class name in the cmd entry point thus not allowing it to be set by consumers. This change exposes that classname on the conductor conf so that consumers could plug-in their own manager class. Additionally unit tests are provided to ensure a user defined and conductor manager can be used in addition to the default trove conductor manager. Change-Id: I6bf88dd9cf119f0eb6a197f4bda48c309511297e Implements: blueprint pluggable-conductor-manager
23 lines
760 B
Python
23 lines
760 B
Python
# Copyright 2014 IBM Corp.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
|
|
class FakeConf(object):
|
|
|
|
def __init__(self, conf_dict):
|
|
self._conf = conf_dict
|
|
|
|
def __getattr__(self, name):
|
|
return self._conf[name]
|