Remove bin lookup in conf sample generator
As of 584b2f, the bin directory has been removed. No longer need to handle bin/ Change-Id: Ic5013cd27d7e420a6a01d207546f7ac0258d62d1
This commit is contained in:
@@ -21,15 +21,9 @@
|
|||||||
|
|
||||||
FILES=$(find nova -type f -name "*.py" ! -path "nova/tests/*" \
|
FILES=$(find nova -type f -name "*.py" ! -path "nova/tests/*" \
|
||||||
-exec grep -l "Opt(" {} + | sort -u)
|
-exec grep -l "Opt(" {} + | sort -u)
|
||||||
BINS=$(echo bin/nova-* | grep -v nova-rootwrap)
|
|
||||||
|
|
||||||
export EVENTLET_NO_GREENDNS=yes
|
export EVENTLET_NO_GREENDNS=yes
|
||||||
|
|
||||||
MODULEPATH=$(dirname "$0")/../../nova/openstack/common/config/generator.py
|
MODULEPATH=$(dirname "$0")/../../nova/openstack/common/config/generator.py
|
||||||
OUTPUTPATH=etc/nova/nova.conf.sample
|
OUTPUTPATH=etc/nova/nova.conf.sample
|
||||||
PYTHONPATH=./:${PYTHONPATH} python $MODULEPATH $FILES $BINS > $OUTPUTPATH
|
PYTHONPATH=./:${PYTHONPATH} python $MODULEPATH $FILES > $OUTPUTPATH
|
||||||
|
|
||||||
# Remove compiled files created by imp.import_source()
|
|
||||||
for bin in ${BINS}; do
|
|
||||||
[ -f ${bin}c ] && rm ${bin}c
|
|
||||||
done
|
|
||||||
|
Reference in New Issue
Block a user