diff --git a/tools/conf/generate_sample.sh b/tools/conf/generate_sample.sh index 89bae8ab819b..44d4672b6e60 100755 --- a/tools/conf/generate_sample.sh +++ b/tools/conf/generate_sample.sh @@ -21,15 +21,9 @@ FILES=$(find nova -type f -name "*.py" ! -path "nova/tests/*" \ -exec grep -l "Opt(" {} + | sort -u) -BINS=$(echo bin/nova-* | grep -v nova-rootwrap) export EVENTLET_NO_GREENDNS=yes MODULEPATH=$(dirname "$0")/../../nova/openstack/common/config/generator.py OUTPUTPATH=etc/nova/nova.conf.sample -PYTHONPATH=./:${PYTHONPATH} python $MODULEPATH $FILES $BINS > $OUTPUTPATH - -# Remove compiled files created by imp.import_source() -for bin in ${BINS}; do - [ -f ${bin}c ] && rm ${bin}c -done +PYTHONPATH=./:${PYTHONPATH} python $MODULEPATH $FILES > $OUTPUTPATH