Merge "Fix rpms being installed via DeployArtifactURLs"
authorJenkins <jenkins@review.openstack.org>
Fri, 23 Jun 2017 17:05:14 +0000 (17:05 +0000)
committerGerrit Code Review <review@openstack.org>
Fri, 23 Jun 2017 17:05:14 +0000 (17:05 +0000)
1  2 
puppet/deploy-artifacts.sh

@@@ -16,10 -18,12 +18,12 @@@ if [ -n "$artifact_urls" ]; the
        tar xvzf $TMP_DATA/file_data
        popd
      else
 -      echo "ERROR: Unsupported file format."
 +      echo "ERROR: Unsupported file format: $URL"
        exit 1
      fi
-     rm $TMP_DATA/file_data
+     if [ -f $TMP_DATA/file_data ]; then
+       rm $TMP_DATA/file_data
+     fi
    done
  else
    echo "No artifact_urls was set. Skipping..."