Fix bashate E003 violations

This commit fixes bashate E003 (indents are a multiple of 4 spaces)
violations in the OCF scripts.

Partial-Bug: #1550203
Change-Id: I6fbc935bd5f9b383ca97c45f2dd89d7d33a5780f
Signed-off-by: Norbert Illes <norbert.e.illes@ericsson.com>
This commit is contained in:
Norbert Illes 2016-02-26 15:08:37 +01:00
parent 076ae60516
commit 173a77cec8
19 changed files with 555 additions and 271 deletions

View File

@ -324,10 +324,13 @@ ceilometer_agent_central_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
exit $OCF_SUCCESS
;;
usage|help) usage usage|help) usage
exit $OCF_SUCCESS;; exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -335,11 +338,22 @@ ceilometer_agent_central_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) ceilometer_agent_central_start;; start)
stop) ceilometer_agent_central_stop;; ceilometer_agent_central_start
status) ceilometer_agent_central_status;; ;;
monitor) ceilometer_agent_central_monitor;; stop)
validate-all) ;; ceilometer_agent_central_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
ceilometer_agent_central_status
;;
monitor)
ceilometer_agent_central_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -350,10 +350,14 @@ cinder_api_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -361,12 +365,23 @@ cinder_api_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) cinder_api_start;; start)
stop) cinder_api_stop;; cinder_api_start
status) cinder_api_status;; ;;
monitor) cinder_api_monitor;; stop)
validate-all) ;; cinder_api_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
cinder_api_status
;;
monitor)
cinder_api_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -324,10 +324,14 @@ cinder_scheduler_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -335,11 +339,22 @@ cinder_scheduler_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) cinder_scheduler_start;; start)
stop) cinder_scheduler_stop;; cinder_scheduler_start
status) cinder_scheduler_status;; ;;
monitor) cinder_scheduler_monitor;; stop)
validate-all) ;; cinder_scheduler_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
cinder_scheduler_status
;;
monitor)
cinder_scheduler_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -329,10 +329,14 @@ cinder_volume_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -340,11 +344,22 @@ cinder_volume_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) cinder_volume_start;; start)
stop) cinder_volume_stop;; cinder_volume_start
status) cinder_volume_status;; ;;
monitor) cinder_volume_monitor;; stop)
validate-all) ;; cinder_volume_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
cinder_volume_status
;;
monitor)
cinder_volume_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -343,10 +343,14 @@ glance_api_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -354,11 +358,22 @@ glance_api_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) glance_api_start;; start)
stop) glance_api_stop;; glance_api_start
status) glance_api_status;; ;;
monitor) glance_api_monitor;; stop)
validate-all) ;; glance_api_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
glance_api_status
;;
monitor)
glance_api_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -352,10 +352,14 @@ glance_registry_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -363,11 +367,22 @@ glance_registry_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) glance_registry_start;; start)
stop) glance_registry_stop;; glance_registry_start
status) glance_registry_status;; ;;
monitor) glance_registry_monitor;; stop)
validate-all) ;; glance_registry_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
glance_registry_status
;;
monitor)
glance_registry_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -334,10 +334,14 @@ heat_engine_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -345,11 +349,22 @@ heat_engine_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) heat_engine_start;; start)
stop) heat_engine_stop;; heat_engine_start
status) heat_engine_status;; ;;
monitor) heat_engine_monitor;; stop)
validate-all) ;; heat_engine_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
heat_engine_status
;;
monitor)
heat_engine_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -345,10 +345,14 @@ keystone_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -356,11 +360,22 @@ keystone_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) keystone_start;; start)
stop) keystone_stop;; keystone_start
status) keystone_status;; ;;
monitor) keystone_monitor;; stop)
validate-all) ;; keystone_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
keystone_status
;;
monitor)
keystone_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -318,10 +318,14 @@ neutron_dhcp_agent_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -329,11 +333,22 @@ neutron_dhcp_agent_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) neutron_dhcp_agent_start;; start)
stop) neutron_dhcp_agent_stop;; neutron_dhcp_agent_start
status) neutron_dhcp_agent_status;; ;;
monitor) neutron_dhcp_agent_monitor;; stop)
validate-all) ;; neutron_dhcp_agent_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
neutron_dhcp_agent_status
;;
monitor)
neutron_dhcp_agent_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -319,10 +319,14 @@ neutron_l3_agent_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -330,11 +334,22 @@ neutron_l3_agent_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) neutron_l3_agent_start;; start)
stop) neutron_l3_agent_stop;; neutron_l3_agent_start
status) neutron_l3_agent_status;; ;;
monitor) neutron_l3_agent_monitor;; stop)
validate-all) ;; neutron_l3_agent_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
neutron_l3_agent_status
;;
monitor)
neutron_l3_agent_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -230,10 +230,14 @@ neutron_ha_tool_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -250,11 +254,22 @@ fi
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) neutron_ha_tool_start;; start)
stop) neutron_ha_tool_stop;; neutron_ha_tool_start
status) neutron_ha_tool_status;; ;;
monitor) neutron_ha_tool_monitor;; stop)
validate-all) ;; neutron_ha_tool_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
neutron_ha_tool_status
;;
monitor)
neutron_ha_tool_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -308,10 +308,14 @@ neutron_metadata_agent_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -319,11 +323,22 @@ neutron_metadata_agent_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) neutron_metadata_agent_start;; start)
stop) neutron_metadata_agent_stop;; neutron_metadata_agent_start
status) neutron_metadata_agent_status;; ;;
monitor) neutron_metadata_agent_monitor;; stop)
validate-all) ;; neutron_metadata_agent_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
neutron_metadata_agent_status
;;
monitor)
neutron_metadata_agent_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -361,10 +361,14 @@ neutron_server_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -372,11 +376,22 @@ neutron_server_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) neutron_server_start;; start)
stop) neutron_server_stop;; neutron_server_start
status) neutron_server_status;; ;;
monitor) neutron_server_monitor;; stop)
validate-all) ;; neutron_server_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
neutron_server_status
;;
monitor)
neutron_server_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -350,10 +350,14 @@ nova_api_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -361,12 +365,23 @@ nova_api_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) nova_api_start;; start)
stop) nova_api_stop;; nova_api_start
status) nova_api_status;; ;;
monitor) nova_api_monitor;; stop)
validate-all) ;; nova_api_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
nova_api_status
;;
monitor)
nova_api_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -363,10 +363,14 @@ nova_cert_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -374,12 +378,23 @@ nova_cert_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) nova_cert_start;; start)
stop) nova_cert_stop;; nova_cert_start
status) nova_cert_status;; ;;
monitor) nova_cert_monitor;; stop)
validate-all) ;; nova_cert_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
nova_cert_status
;;
monitor)
nova_cert_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -363,10 +363,14 @@ nova_consoleauth_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -374,12 +378,23 @@ nova_consoleauth_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) nova_consoleauth_start;; start)
stop) nova_consoleauth_stop;; nova_consoleauth_start
status) nova_consoleauth_status;; ;;
monitor) nova_consoleauth_monitor;; stop)
validate-all) ;; nova_consoleauth_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
nova_consoleauth_status
;;
monitor)
nova_consoleauth_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -343,10 +343,14 @@ nova_network_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -354,11 +358,22 @@ nova_network_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) nova_network_start;; start)
stop) nova_network_stop;; nova_network_start
status) nova_network_status;; ;;
monitor) nova_network_monitor;; stop)
validate-all) ;; nova_network_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
nova_network_status
;;
monitor)
nova_network_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -312,10 +312,14 @@ nova_vnc_console_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -323,12 +327,23 @@ nova_vnc_console_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) nova_vnc_console_start;; start)
stop) nova_vnc_console_stop;; nova_vnc_console_start
status) nova_vnc_console_status;; ;;
monitor) nova_vnc_console_monitor;; stop)
validate-all) ;; nova_vnc_console_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
nova_vnc_console_status
;;
monitor)
nova_vnc_console_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac

View File

@ -361,10 +361,14 @@ nova_scheduler_stop() {
####################################################################### #######################################################################
case "$1" in case "$1" in
meta-data) meta_data meta-data)
exit $OCF_SUCCESS;; meta_data
usage|help) usage exit $OCF_SUCCESS
exit $OCF_SUCCESS;; ;;
usage|help)
usage
exit $OCF_SUCCESS
;;
esac esac
# Anything except meta-data and help must pass validation # Anything except meta-data and help must pass validation
@ -372,12 +376,23 @@ nova_scheduler_validate || exit $?
# What kind of method was invoked? # What kind of method was invoked?
case "$1" in case "$1" in
start) nova_scheduler_start;; start)
stop) nova_scheduler_stop;; nova_scheduler_start
status) nova_scheduler_status;; ;;
monitor) nova_scheduler_monitor;; stop)
validate-all) ;; nova_scheduler_stop
*) usage ;;
exit $OCF_ERR_UNIMPLEMENTED;; status)
nova_scheduler_status
;;
monitor)
nova_scheduler_monitor
;;
validate-all)
;;
*)
usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac esac