coreos/coreos-cloudinit — pull request #240 by epankala (2014-09-24 17:48:08+00:00)
Title: AWS: Eucalyptus 4.x compatibility fix

For Eucalyptus 4.0.1 requesting metadata seem to work differently as with EC2.

In Euca:
> curl http://169.254.169.254/2009-04-04
404 Not Foundunknownunknown

> curl http://169.254.169.254/2009-04-04/
dynamic
meta-data
user-data

In AWS EC2
> curl http://169.254.169.254/2009-04-04
"" (zero bytes)

> curl http://169.254.169.254/2009-04-04/
dynamic
meta-data
user-data

As the isAvailable() function in metadata.go tests only for error code it fails in Euca.