Apex: fixes cleaning nodes 61/20061/1
authorTim Rozet <trozet@redhat.com>
Wed, 31 Aug 2016 18:55:10 +0000 (14:55 -0400)
committerTim Rozet <trozet@redhat.com>
Wed, 31 Aug 2016 18:55:10 +0000 (14:55 -0400)
Change-Id: Ic83d559fab26cc795e16769529ddce0acd84dc17
Signed-off-by: Tim Rozet <trozet@redhat.com>
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=''