Add register_api_opts to api/__init__.py, slightly simplifying
the api executables, and also solving an issue with some tests
which were not working via nosetests -s due to the required
options not being registered in cfg.CONF
Change-Id: I70b16aae1f73f72518013dbcda37defa79fc5649
Signed-off-by: Steven Hardy <shardy@redhat.com>
try:
cfg.CONF(project='heat', prog='heat-api')
config.setup_logging()
- config.register_api_opts()
app = config.load_paste_app()
try:
cfg.CONF(project='heat', prog='heat-api-cfn')
config.setup_logging()
- config.register_api_opts()
app = config.load_paste_app()
try:
cfg.CONF(project='heat', prog='heat-api-cloudwatch')
config.setup_logging()
- config.register_api_opts()
app = config.load_paste_app()
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
+
+from heat.common import config
+
+config.register_api_opts()