Avoid MODULEPATH environment var in config generator
MODULEPATH is apparently a well known variable from environment-modules package. So let's just use another one as we don't care about the specific var name itself. Closes-Bug: #1437904 Change-Id: Id79bbdaad498c771dc4c032256bd8160b5663ef9
This commit is contained in:
parent
6afe84df5a
commit
e7b51eb27f
@ -107,10 +107,10 @@ export EVENTLET_NO_GREENDNS=yes
|
||||
|
||||
OS_VARS=$(set | sed -n '/^OS_/s/=[^=]*$//gp' | xargs)
|
||||
[ "$OS_VARS" ] && eval "unset \$OS_VARS"
|
||||
DEFAULT_MODULEPATH=nova.openstack.common.config.generator
|
||||
MODULEPATH=${MODULEPATH:-$DEFAULT_MODULEPATH}
|
||||
DEFAULT_CONFIG_GENERATOR=nova.openstack.common.config.generator
|
||||
CONFIG_GENERATOR=${CONFIG_GENERATOR:-$DEFAULT_CONFIG_GENERATOR}
|
||||
OUTPUTFILE=$OUTPUTDIR/$PACKAGENAME.conf.sample
|
||||
python -m $MODULEPATH $MODULES $LIBRARIES $FILES > $OUTPUTFILE
|
||||
python -m $CONFIG_GENERATOR $MODULES $LIBRARIES $FILES > $OUTPUTFILE
|
||||
|
||||
# Hook to allow projects to append custom config file snippets
|
||||
CONCAT_FILES=$(ls $BASEDIR/tools/config/*.conf.sample 2>/dev/null)
|
||||
|
Loading…
Reference in New Issue
Block a user