Skip to content

Commit

Permalink
fix openstack URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jblomer committed Oct 22, 2015
1 parent 92e0b9a commit 5cd7741
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts.d/06context
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down

0 comments on commit 5cd7741

Please sign in to comment.