From 1447abcd0269766811c8e9fd5df6b2f5ed14560a Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Sun, 15 May 2016 11:56:17 +0800 Subject: [PATCH] Fix syntax error in devstack create-node script when setting "--prealloc-metadata" parameter, a missing `]' error will be raised, this was introduced by a recently merged patch I8f8a0b75b41f0e2712496c275b91ee027aa37f76 Change-Id: If9877acf697f6c12e74a84c46aa44655d9ceef5a Closes-Bug: #1581909 --- devstack/tools/ironic/scripts/create-node.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/tools/ironic/scripts/create-node.sh b/devstack/tools/ironic/scripts/create-node.sh index ce3ff1f238..e577f3cd20 100755 --- a/devstack/tools/ironic/scripts/create-node.sh +++ b/devstack/tools/ironic/scripts/create-node.sh @@ -51,7 +51,7 @@ if [ -n "$LOGDIR" ] ; then fi PREALLOC= -if [ -f /etc/debian_version && "$DISK_FORMAT" == "qcow2" ]; then +if [ -f /etc/debian_version -a "$DISK_FORMAT" == "qcow2" ]; then PREALLOC="--prealloc-metadata" fi