blob: 547e31457b2fa27e33f5c705080121fae43c0c37 [file] [log] [blame]
#!/usr/bin/env python
"teeny helper script to find and output instance metadata"
import sys
import os
if sys.platform not in ('win32', 'cygwin'):
path = "/etc/instance_metadata.json"
else:
path = r"C:\instance_metadata.json"
if os.path.exists(path) and os.access(path, os.R_OK):
print open(path).read()