Skip to content

Commit

Permalink
Use tPackageExists podman before installing
Browse files Browse the repository at this point in the history
If podman is already installed, there's a verbose message in the failure
log. This can be avoided by first checking if it already exists.
  • Loading branch information
ekohl authored and ehelms committed Oct 10, 2020
1 parent 5a98f0a commit 65aa4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bats/fb-content-katello.bats
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ setup() {
if [[ $(printf "${FOREMAN_VERSION}\n1.20" | sort --version-sort | tail -n 1) == "1.20" ]] ; then
skip "docker v2 API is not supported on this version"
fi
tPackageInstall podman
tPackageExists podman || tPackageInstall podman
podman login $HOSTNAME -u admin -p changeme
CONTAINER_PULL_LABEL=`echo "${ORGANIZATION_LABEL}-${PRODUCT_LABEL}-${CONTAINER_REPOSITORY_LABEL}"| tr '[:upper:]' '[:lower:]'`
podman pull "${HOSTNAME}/${CONTAINER_PULL_LABEL}"
Expand Down

0 comments on commit 65aa4b0

Please sign in to comment.