Skip to content

Instantly share code, notes, and snippets.

@zippyz
Created October 22, 2012 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zippyz/3934903 to your computer and use it in GitHub Desktop.
Save zippyz/3934903 to your computer and use it in GitHub Desktop.
instance = getInstanceId()
stream = file('db.yml', 'r')
myDict = yaml.load(stream)
if myDict.has_key('instance') == True:
for key in myDict:
print "key:" + key + " " + "value: " + myDict[key] + "\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment