diff options
author | zhouya <zhou.ya@zte.com.cn> | 2018-01-05 11:19:52 +0800 |
---|---|---|
committer | zhouya <zhou.ya@zte.com.cn> | 2018-01-16 11:09:47 +0800 |
commit | 371916c2ad016c460cee384db0e9ca1c97d11b6f (patch) | |
tree | ce9247ecf23fd00c9832646da20fcb6713102e7c /deploy/prepare.sh | |
parent | 1591bb64f538e0a51ee2e80995d94443711edb99 (diff) |
Add extra parameter to integrate with doctor
Need to change some parameter of ceilometer
to run doctor. In order not to influence
other scenario, add an extra '-d' argument
for doctor test only to change event_pipelint.yaml
template file in kolla-ansible code.
Change-Id: Ia5536658b2a2698bc1384e255328d4d719cc566c
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
Diffstat (limited to 'deploy/prepare.sh')
-rw-r--r-- | deploy/prepare.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/deploy/prepare.sh b/deploy/prepare.sh index 803d2462..bdf9f1ca 100644 --- a/deploy/prepare.sh +++ b/deploy/prepare.sh @@ -23,6 +23,7 @@ usage: `basename $0` -n network_config_file OPTIONS: -n network configuration path, necessary -b 0 for virtual, 1 for baremetal + -d 1 for run doctor, other do not -h Print this message and exit Description: @@ -36,7 +37,7 @@ EOF NETWORK_CONF='' -while getopts "n:b:h" OPTION +while getopts "n:b:d:h" OPTION do case $OPTION in n) @@ -45,6 +46,9 @@ do b) IS_BARE=${OPTARG} ;; + d) + RUN_DOCTOR=${OPTARG} + ;; h) usage exit 0 @@ -57,4 +61,4 @@ do esac done -python $PYTHONPATH/deploy/prepare/execute.py -nw $NETWORK_CONF -b $IS_BARE +python $PYTHONPATH/deploy/prepare/execute.py -nw $NETWORK_CONF -b $IS_BARE -d $RUN_DOCTOR |