From 98fa75b0d85d57ad715634a4561fbaa5d443f370 Mon Sep 17 00:00:00 2001 From: "carey.xu" Date: Sat, 19 Dec 2015 18:39:49 +0800 Subject: bugfix: ssh disconnect error JIRA: COMPASS-148 Change-Id: I65542e6078e3c21080b23fa61560dc8210770971 Signed-off-by: carey.xu --- deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh') diff --git a/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh b/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh index d0e6c776..1f0b2b0e 100644 --- a/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh +++ b/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh @@ -1,5 +1,5 @@ loop_dev=`losetup -a |grep "/var/cinder.img"|awk -F':' '{print $1}'` -if [[ -z $loop_dev ]]; then +if [ -z $loop_dev ]; then losetup -f --show /var/cinder.img else echo $loop_dev -- cgit 1.2.3-korg