From 5aef0e13411fb8ce4e396b9addf65ef5a9ba28a2 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Fri, 9 Mar 2012 11:05:13 +0000 Subject: Add pybasedir and bindir options Add a pybasedir option so that it can be used for interpolation in the default values of other options. This helps eliminate hard-coded paths from the sample config file. Also add a bindir option for similar reasons, but it also helps with packaging. Change-Id: Iadc746dcf2a24adbdf9bac945b5b330f01faeeb5 --- nova/auth/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/auth') diff --git a/nova/auth/manager.py b/nova/auth/manager.py index 438066e3b..ca2a3add5 100644 --- a/nova/auth/manager.py +++ b/nova/auth/manager.py @@ -63,10 +63,10 @@ auth_opts = [ help='Roles that apply to all projects'), cfg.StrOpt('credentials_template', - default=utils.abspath('auth/novarc.template'), + default='$pybasedir/nova/auth/novarc.template', help='Template for creating users rc file'), cfg.StrOpt('vpn_client_template', - default=utils.abspath('cloudpipe/client.ovpn.template'), + default='$pybasedir/nova/cloudpipe/client.ovpn.template', help='Template for creating users vpn file'), cfg.StrOpt('credential_vpn_file', default='nova-vpn.conf', -- cgit