Skip to content

Commit

Permalink
Fixup last commit which had wrong main Vagrantfile path
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart Addison <sxa@uk.ibm.com>
  • Loading branch information
Stewart Addison committed Jan 6, 2020
1 parent c4643ee commit 6d88e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/pbTestScripts/vagrantPlaybookCheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ checkVagrantOS()
local vagrantOSlist=$(ls -1 Vagrantfile.* | cut -d. -f 2)
if [[ "$newVagrantFiles" = "true" ]] && [[ -f "Vagrantfile.${vagrantOS}" ]]; then
echo "Vagrantfile detected"
elif [[ "$newVagrantFiles" != "true" ]] && [[ -f "$WORKSPACE/ansible/pbTestScripts/Vagrantfile.${vagrantOS}" ]]; then
elif [[ "$newVagrantFiles" != "true" ]] && [[ -f "$WORKSPACE/ansible/Vagrantfile.${vagrantOS}" ]]; then
echo "Vagrantfile detected"
elif [[ "$vagrantOS" == "all" ]]; then
vagrantOS=$vagrantOSlist
Expand Down Expand Up @@ -169,7 +169,7 @@ startVMPlaybook()
if [ "$newVagrantFiles" = "true" ]; then
ln -sf Vagrantfile.$OS Vagrantfile
else
ln -sf $WORKSPACE/ansible/pbTestScripts/Vagrantfile.$OS Vagrantfile
ln -sf $WORKSPACE/ansible/Vagrantfile.$OS Vagrantfile
fi
# Copy the machine's ssh key for the VMs to use, after removing prior files
rm -f id_rsa.pub id_rsa
Expand Down

0 comments on commit 6d88e1a

Please sign in to comment.