Fix bashate E002 violations
This commit fixes bashate E002 (indents are only spaces, and not hard tabs) violations Partial-Bug: #1550203 Change-Id: I7d156d47023781be74e6fa8daef6ffc311b55d9d Signed-off-by: Norbert Illes <norbert.e.illes@ericsson.com>
This commit is contained in:
parent
6ad8eb01ae
commit
4397355193
@ -314,7 +314,8 @@ nova_validate() {
|
||||
|
||||
if [ -n "${OCF_RESKEY_endpoint_type}" ]; then
|
||||
case ${OCF_RESKEY_endpoint_type} in
|
||||
adminURL|publicURL|internalURL) ;;
|
||||
adminURL|publicURL|internalURL)
|
||||
;;
|
||||
*)
|
||||
ocf_exit_reason "endpoint_type ${OCF_RESKEY_endpoint_type} not valid. Use adminURL or publicURL or internalURL"
|
||||
exit $OCF_ERR_CONFIGURED
|
||||
@ -359,21 +360,36 @@ nova_validate() {
|
||||
|
||||
: ${OCF_RESKEY_evacuation_delay=120}
|
||||
case $__OCF_ACTION in
|
||||
meta-data) meta_data
|
||||
meta-data)
|
||||
meta_data
|
||||
exit $OCF_SUCCESS
|
||||
;;
|
||||
usage|help) nova_usage
|
||||
usage|help)
|
||||
nova_usage
|
||||
exit $OCF_SUCCESS
|
||||
;;
|
||||
esac
|
||||
|
||||
case $__OCF_ACTION in
|
||||
start) nova_validate; nova_start;;
|
||||
stop) nova_stop;;
|
||||
monitor) nova_validate; nova_monitor;;
|
||||
notify) nova_notify;;
|
||||
validate-all) exit $OCF_SUCCESS;;
|
||||
*) nova_usage
|
||||
start)
|
||||
nova_validate
|
||||
nova_start
|
||||
;;
|
||||
stop)
|
||||
nova_stop
|
||||
;;
|
||||
monitor)
|
||||
nova_validate
|
||||
nova_monitor
|
||||
;;
|
||||
notify)
|
||||
nova_notify
|
||||
;;
|
||||
validate-all)
|
||||
exit $OCF_SUCCESS
|
||||
;;
|
||||
*)
|
||||
nova_usage
|
||||
exit $OCF_ERR_UNIMPLEMENTED
|
||||
;;
|
||||
esac
|
||||
|
@ -184,9 +184,13 @@ handle_evacuations() {
|
||||
need_evacuate=0
|
||||
|
||||
case $state in
|
||||
"") ;;
|
||||
no) ocf_log debug "$node is either fine or already handled";;
|
||||
yes) need_evacuate=1;;
|
||||
"")
|
||||
;;
|
||||
no)
|
||||
ocf_log debug "$node is either fine or already handled"
|
||||
;;
|
||||
yes) need_evacuate=1
|
||||
;;
|
||||
*@*)
|
||||
where=$(echo $state | awk -F@ '{print $1}')
|
||||
when=$(echo $state | awk -F@ '{print $2}')
|
||||
@ -321,7 +325,8 @@ evacuate_validate() {
|
||||
|
||||
if [ -n "${OCF_RESKEY_endpoint_type}" ]; then
|
||||
case ${OCF_RESKEY_endpoint_type} in
|
||||
adminURL|publicURL|internalURL) ;;
|
||||
adminURL|publicURL|internalURL)
|
||||
;;
|
||||
*)
|
||||
ocf_exit_reason "endpoint_type ${OCF_RESKEY_endpoint_type} not valid. Use adminURL or publicURL or internalURL"
|
||||
exit $OCF_ERR_CONFIGURED
|
||||
@ -339,17 +344,30 @@ evacuate_validate() {
|
||||
statefile="${HA_RSCTMP}/${OCF_RESOURCE_INSTANCE}.active"
|
||||
|
||||
case $__OCF_ACTION in
|
||||
start) evacuate_validate; evacuate_start;;
|
||||
stop) evacuate_stop;;
|
||||
monitor) evacuate_validate; evacuate_monitor;;
|
||||
meta-data) meta_data
|
||||
start)
|
||||
evacuate_validate
|
||||
evacuate_start
|
||||
;;
|
||||
stop)
|
||||
evacuate_stop
|
||||
;;
|
||||
monitor)
|
||||
evacuate_validate
|
||||
evacuate_monitor
|
||||
;;
|
||||
meta-data)
|
||||
meta_data
|
||||
exit $OCF_SUCCESS
|
||||
;;
|
||||
usage|help) evacuate_usage
|
||||
usage|help)
|
||||
evacuate_usage
|
||||
exit $OCF_SUCCESS
|
||||
;;
|
||||
validate-all) exit $OCF_SUCCESS;;
|
||||
*) evacuate_usage
|
||||
validate-all)
|
||||
exit $OCF_SUCCESS
|
||||
;;
|
||||
*)
|
||||
evacuate_usage
|
||||
exit $OCF_ERR_UNIMPLEMENTED
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user