Merge "[Functest] Fix typo exiting with a ret_val variable"
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 31 Aug 2016 18:58:25 +0000 (18:58 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Wed, 31 Aug 2016 18:58:25 +0000 (18:58 +0000)
jjb/apex/apex-deploy.sh

index 0e39854..aa21697 100755 (executable)
@@ -139,7 +139,7 @@ fi
 DEPLOY_CMD="CONFIG=${CONFIG} RESOURCES=${RESOURCES} LIB=${LIB} ${DEPLOY_CMD}"
 
 if [ "$OPNFV_CLEAN" == 'yes' ]; then
-  if [ -f '/root/inventory/pod_settings.yaml' ]; then
+  if sudo test -e '/root/inventory/pod_settings.yaml'; then
     clean_opts='-f /root/inventory/pod_settings.yaml'
   else
     clean_opts=''