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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user