Browse Source

Fix bashate E010 violation

This commit fixes a bashate E010 violation:

[E] E010: The "do" should be on same line as for: '        for i in `ps -o pid --no-headers --ppid $pid`'
 - /home/adam/SUSE/cloud/OpenStack/git/openstack-resource-agents/ocf/cinder-volume : L219

Change-Id: I25b6e05336b1679818ad6f876bf94679a6d5ac10
Partial-Bug: #1550203
Signed-off-by: Adam Spiers <aspiers@suse.com>
Adam Spiers 3 years ago
parent
commit
1d019f5f73
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      ocf/cinder-volume

+ 1
- 2
ocf/cinder-volume View File

@@ -216,8 +216,7 @@ cinder_volume_monitor() {
216 216
 
217 217
     if ocf_is_true "$OCF_RESKEY_multibackend"; then
218 218
         # Grab the child's PIDs
219
-        for i in `ps -o pid --no-headers --ppid $pid`
220
-        do
219
+        for i in `ps -o pid --no-headers --ppid $pid`; do
221 220
             volume_amqp_check=`netstat -punt | grep -s "$OCF_RESKEY_amqp_server_port" | grep -s "$i" | grep -qs "ESTABLISHED"`
222 221
             rc=$?
223 222
             if [ $rc -ne 0 ]; then

Loading…
Cancel
Save