From ab6f80ca4850a64179ab55fe4891487e1af527b7 Mon Sep 17 00:00:00 2001
From: Arie Peterson <arie@greenhost.nl>
Date: Wed, 18 Dec 2019 14:50:41 +0100
Subject: [PATCH] Revert hostname truncation

---
 .gitlab/ci_scripts/create_vps.sh | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/.gitlab/ci_scripts/create_vps.sh b/.gitlab/ci_scripts/create_vps.sh
index 47ae61bd6..654963ada 100644
--- a/.gitlab/ci_scripts/create_vps.sh
+++ b/.gitlab/ci_scripts/create_vps.sh
@@ -2,10 +2,6 @@
 # Check if cluster directory was available from cache
 set -v
 
-# Shorten the hostname to work around a bug in cosmos, which fails to create a
-# working VPS if the the hostname is too long.
-HOSTNAME=$(expr substr "${HOSTNAME}" 1 40)
-
 if [ -d clusters/$HOSTNAME/secrets ]
 then
   ip_address=$(python -m openappstack ${HOSTNAME} info --ip-address)
-- 
GitLab