Merge "Remove unneccesary state_path config option"
This commit is contained in:
commit
f4cc62737d
@ -13,7 +13,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from oslo.config import cfg
|
||||
@ -41,19 +40,8 @@ def cli_opts():
|
||||
CONF.register_cli_opt(opt)
|
||||
|
||||
|
||||
def state_path_def(*args):
|
||||
"""Return an uninterpolated path relative to $state_path."""
|
||||
return os.path.join('$state_path', *args)
|
||||
|
||||
|
||||
_DEFAULT_SQL_CONNECTION = 'sqlite:///' + state_path_def('subunit2sql.sqlite')
|
||||
|
||||
|
||||
def parse_args(argv, default_config_files=None):
|
||||
cfg.CONF.register_cli_opts(options.database_opts, group='database')
|
||||
cfg.CONF.set_default('connection', _DEFAULT_SQL_CONNECTION,
|
||||
group='database')
|
||||
cfg.CONF.set_default('sqlite_db', 'subunit2sql.sqlite', group='database')
|
||||
cfg.CONF(argv[1:], project='subunit2sql',
|
||||
default_config_files=default_config_files)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user