Files
python-barbicanclient/barbicanclient/common/config.py
Juan Antonio Osorio Robles 83c4fb6a7e Drop old namespace for some oslo libraries
The oslo team has decided to drop the "oslo." namespacing as it was
causing a lot of trouble. So, as described [1], the namespace was
dropped in favor of the "oslo_" imports that will be used.

[1] http://blog.nemebean.com/content/whys-and-hows-oslo-namespace-change

Change-Id: Ieb88098a2a64069787f3b548af3f35312127be43
2015-01-27 13:59:54 +02:00

36 lines
1008 B
Python

# Copyright (c) 2013 Rackspace, Inc.
#
# 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.
"""
Configuration setup for Barbican Client.
"""
import os
import sys
from barbicanclient.version import __version__
from oslo_config import cfg
CONF = cfg.CONF
def parse_args(args=None, usage=None, default_config_files=None):
CONF(args=args,
project='barbicanclient',
prog='barbicanclient',
version=__version__,
usage=usage,
default_config_files=default_config_files)