summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-08-31 14:55:10 -0400
committerTim Rozet <trozet@redhat.com>2016-08-31 14:55:10 -0400
commit97e36eff05458698f94f014f7756797b0c2eae2d (patch)
tree4dbac5463453ca622dd864f1466c9cfaee1727bc
parent1a68455d59c4161997f706729cd70f31c9ab679d (diff)
Apex: fixes cleaning nodes
Change-Id: Ic83d559fab26cc795e16769529ddce0acd84dc17 Signed-off-by: Tim Rozet <trozet@redhat.com>
-rwxr-xr-xjjb/apex/apex-deploy.sh2
1 files changed, 1 insertions, 1 deletions
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=''