From 0c55bb01631b8f9c39aa11318cb3a0a64e62bfe3 Mon Sep 17 00:00:00 2001
From: Maarten de Waard <maarten@greenhost.nl>
Date: Tue, 3 Dec 2019 15:43:59 +0100
Subject: [PATCH] fix bug in create_vps.sh

---
 .gitlab-ci.yml                   | 1 +
 .gitlab/ci_scripts/create_vps.sh | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 18b1cafae..f54fe6407 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -48,6 +48,7 @@ create-vps:
   only:
     changes:
       - .gitlab-ci.yml
+      - .gitlab/ci_scripts/*
       - ansible/**/*
       - helmfiles/**/*
       - test/**/*
diff --git a/.gitlab/ci_scripts/create_vps.sh b/.gitlab/ci_scripts/create_vps.sh
index 2b57e8319..ac33e2dc7 100644
--- a/.gitlab/ci_scripts/create_vps.sh
+++ b/.gitlab/ci_scripts/create_vps.sh
@@ -8,7 +8,7 @@ then
   echo "Running python script"
   # Run a python script that checks if the cached machine still exists. The
   # script exits with 0 (true) if the machine can be reused
-  if python3 $(dirname "$0")/can_reuse_machine.py $HOSTNAME $IP_ADDRESS
+  if python3 $(dirname "$0")/can_reuse_machine.py $HOSTNAME $ip_address
   then
     exit 0
   fi
-- 
GitLab