Skip to content
Snippets Groups Projects
Commit 9e8b92ce authored by Varac's avatar Varac
Browse files

Merge branch '442-hostname-is-still-too-long' into 'master'

Resolve "Hostname is still too long"

Closes #442

See merge request openappstack/openappstack!186
parents 5e2b811c 59b7c9ef
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,10 @@
# 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment