From 5cd7741c33f2726281e62c0c0cff8aafcc0a4411 Mon Sep 17 00:00:00 2001 From: Jakob Blomer Date: Thu, 22 Oct 2015 10:04:30 +0200 Subject: [PATCH] fix openstack URL --- scripts.d/06context | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts.d/06context b/scripts.d/06context index a28a294..285c331 100644 --- a/scripts.d/06context +++ b/scripts.d/06context @@ -182,7 +182,14 @@ fetch_openstack() { download_userdata 169.254.169.254 \ http://169.254.169.254/latest/user-data \ http://169.254.169.254/latest/meta-data/ami-id - [ $? -eq 0 ] && UCONTEXT_SRC="OpenStack" + if [ $? -eq 0 ]; then + UCONTEXT_SRC="OpenStack" + else + download_userdata 169.254.169.254 \ + http://169.254.169.254/openstack/latest/user-data \ + http://169.254.169.254/latest/meta-data/ami-id + [ $? -eq 0 ] && UCONTEXT_SRC="OpenStack" + fi }