Browse Source

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

Zuul 1 year ago
parent
commit
1102662aad
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      ocf/NovaEvacuate

+ 14
- 0
ocf/NovaEvacuate View File

@@ -117,6 +117,14 @@ will be lost.
117 117
 <content type="boolean" default="0" />
118 118
 </parameter>
119 119
 
120
+<parameter name="verbose" unique="0" required="0">
121
+<longdesc lang="en">
122
+Enable extra logging from the evacuation process
123
+</longdesc>
124
+<shortdesc lang="en">Enable debug logging</shortdesc>
125
+<content type="boolean" default="0" />
126
+</parameter>
127
+
120 128
 </parameters>
121 129
 
122 130
 <actions>
@@ -319,6 +327,12 @@ evacuate_validate() {
319 327
         fi
320 328
     fi
321 329
 
330
+    if [ -n "${OCF_RESKEY_verbose}" ]; then
331
+        if ocf_is_true "${OCF_RESKEY_verbose}"; then
332
+            fence_options="${fence_options} --verbose"
333
+        fi
334
+    fi
335
+
322 336
     if [ -n "${OCF_RESKEY_endpoint_type}" ]; then
323 337
         case ${OCF_RESKEY_endpoint_type} in
324 338
             adminURL|publicURL|internalURL)

Loading…
Cancel
Save