From: Tim Rozet Date: Wed, 31 Aug 2016 18:55:10 +0000 (-0400) Subject: Apex: fixes cleaning nodes X-Git-Tag: colorado.1.0~98 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=97e36eff05458698f94f014f7756797b0c2eae2d;p=releng.git Apex: fixes cleaning nodes Change-Id: Ic83d559fab26cc795e16769529ddce0acd84dc17 Signed-off-by: Tim Rozet --- 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=''