From 97e36eff05458698f94f014f7756797b0c2eae2d Mon Sep 17 00:00:00 2001
From: Tim Rozet <trozet@redhat.com>
Date: Wed, 31 Aug 2016 14:55:10 -0400
Subject: Apex: fixes cleaning nodes

Change-Id: Ic83d559fab26cc795e16769529ddce0acd84dc17
Signed-off-by: Tim Rozet <trozet@redhat.com>
---
 jjb/apex/apex-deploy.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'jjb')

diff --git a/jjb/apex/apex-deploy.sh b/jjb/apex/apex-deploy.sh
index 0e3985486..aa21697eb 100755
--- a/jjb/apex/apex-deploy.sh
+++ b/jjb/apex/apex-deploy.sh
@@ -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=''
-- 
cgit