Correct error in empty image cache check.

Fixes bug 1104249.

* devstack-vm-gate-wrap.sh: The check for cached images should not
error when it finds more than one.

Change-Id: I4c2eecaeaa2eec51f7ba18997d686a955bd0710d
This commit is contained in:
Jeremy Stanley
2013-01-24 17:59:45 +00:00
parent 13e85345d2
commit 1ec174c898

View File

@@ -170,7 +170,7 @@ function setup_workspace {
# The vm template update job should cache some images in ~/files.
# Move them to where devstack expects:
if [ -e ~/cache/files/* ]; then
if [ "$(ls ~/cache/files/* 2>/dev/null)" ]; then
rsync -a ~/cache/files/ $DEST/devstack/files/
fi