|
|
@ -182,7 +182,7 @@ function get_new_context {
|
|
|
|
elif vmware_context ; then
|
|
|
|
elif vmware_context ; then
|
|
|
|
log debug "Reading context via vmtoolsd"
|
|
|
|
log debug "Reading context via vmtoolsd"
|
|
|
|
vmtoolsd --cmd 'info-get guestinfo.opennebula.context' | \
|
|
|
|
vmtoolsd --cmd 'info-get guestinfo.opennebula.context' | \
|
|
|
|
openssl base64 -d > ${CONTEXT_NEW}
|
|
|
|
base64 -d > ${CONTEXT_NEW}
|
|
|
|
|
|
|
|
|
|
|
|
elif curl -sf -m 30 -o ${CONTEXT_NEW} http://169.254.169.254/latest/user-data; then
|
|
|
|
elif curl -sf -m 30 -o ${CONTEXT_NEW} http://169.254.169.254/latest/user-data; then
|
|
|
|
log debug "Reading EC2 user-data"
|
|
|
|
log debug "Reading EC2 user-data"
|
|
|
|