Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python2.7
- import yaml
- def ip():
- try:
- with open("ecs.yml") as stream:
- data=yaml.load(stream)
- location=["us-east-1","us-west-1"]
- for x in location:
- for value in data[x]:
- print(value)
- except yaml.YAMLError as exc:
- print(exc)
- ip()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement