Use consistent indent in .sh files
This change fixes the inconsistent indents in the bash script files. Details are described below. * Use 4 spaces instead of tabs. Currently tabs are used partially. * Ensures the corresponding items(like if/else/fi) are placed at the same indent level. Change-Id: Iccf01cd325e171fba8e399d22ee9e0a00f3e781b
This commit is contained in:
parent
71f5ceb459
commit
e99a251ad4
|
@ -206,15 +206,15 @@ TIMEOUT=${6:-__PCMKTIMEOUT__}
|
||||||
# So instead, we implement various searches with XPath directly.
|
# So instead, we implement various searches with XPath directly.
|
||||||
|
|
||||||
if [ "${BUNDLE_NAME}" != "${NAME}" ]; then
|
if [ "${BUNDLE_NAME}" != "${NAME}" ]; then
|
||||||
# ocf resource
|
# ocf resource
|
||||||
local_resource_xpath="//bundle/replica/resource[@resource_agent='${OCF}:pacemaker:remote']/node[@name='${HOST}']/../../resource[@id='${NAME}']"
|
local_resource_xpath="//bundle/replica/resource[@resource_agent='${OCF}:pacemaker:remote']/node[@name='${HOST}']/../../resource[@id='${NAME}']"
|
||||||
any_resource_xpath="//bundle//resource[@id='${NAME}']"
|
any_resource_xpath="//bundle//resource[@id='${NAME}']"
|
||||||
replicas_xpath="//bundle/primitive[@id='${BUNDLE_NAME}']/../*[boolean(@image) and boolean(@replicas)]"
|
replicas_xpath="//bundle/primitive[@id='${BUNDLE_NAME}']/../*[boolean(@image) and boolean(@replicas)]"
|
||||||
else
|
else
|
||||||
# bundle resource
|
# bundle resource
|
||||||
local_resource_xpath="//bundle[@id='${NAME}']/replica/resource/node[@name='${HOST}']/../../resource"
|
local_resource_xpath="//bundle[@id='${NAME}']/replica/resource/node[@name='${HOST}']/../../resource"
|
||||||
any_resource_xpath="//bundle[@id='${NAME}']//resource"
|
any_resource_xpath="//bundle[@id='${NAME}']//resource"
|
||||||
replicas_xpath="//bundle[@id='${BUNDLE_NAME}']/*[boolean(@image) and boolean(@replicas)]"
|
replicas_xpath="//bundle[@id='${BUNDLE_NAME}']/*[boolean(@image) and boolean(@replicas)]"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bundle_def_xpath="//bundle[@id='${BUNDLE_NAME}']/*[boolean(@image) and boolean(@replicas)]"
|
bundle_def_xpath="//bundle[@id='${BUNDLE_NAME}']/*[boolean(@image) and boolean(@replicas)]"
|
||||||
|
|
Loading…
Reference in New Issue