Merge "NovaEvacuate: Allow debug logging to be turned on easily"

This commit is contained in:
Zuul 2018-01-16 15:32:36 +00:00 committed by Gerrit Code Review
commit 1102662aad
1 changed files with 14 additions and 0 deletions

View File

@ -117,6 +117,14 @@ will be lost.
<content type="boolean" default="0" /> <content type="boolean" default="0" />
</parameter> </parameter>
<parameter name="verbose" unique="0" required="0">
<longdesc lang="en">
Enable extra logging from the evacuation process
</longdesc>
<shortdesc lang="en">Enable debug logging</shortdesc>
<content type="boolean" default="0" />
</parameter>
</parameters> </parameters>
<actions> <actions>
@ -319,6 +327,12 @@ evacuate_validate() {
fi fi
fi fi
if [ -n "${OCF_RESKEY_verbose}" ]; then
if ocf_is_true "${OCF_RESKEY_verbose}"; then
fence_options="${fence_options} --verbose"
fi
fi
if [ -n "${OCF_RESKEY_endpoint_type}" ]; then if [ -n "${OCF_RESKEY_endpoint_type}" ]; then
case ${OCF_RESKEY_endpoint_type} in case ${OCF_RESKEY_endpoint_type} in
adminURL|publicURL|internalURL) adminURL|publicURL|internalURL)