Added ap-northeast-2 region (#2849)

reviewable/pr18780/r1
William Holroyd 9 years ago committed by René Moser
parent 68c8669200
commit 4837b04668

@ -54,13 +54,14 @@ import re
socket.setdefaulttimeout(5)
class Ec2Metadata(object):
class Ec2Metadata(object):
ec2_metadata_uri = 'http://169.254.169.254/latest/meta-data/'
ec2_sshdata_uri = 'http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key'
ec2_userdata_uri = 'http://169.254.169.254/latest/user-data/'
AWS_REGIONS = ('ap-northeast-1',
'ap-northeast-2',
'ap-southeast-1',
'ap-southeast-2',
'eu-central-1',
@ -161,6 +162,7 @@ class Ec2Metadata(object):
self.add_ec2_region(data)
return data
def main():
argument_spec = url_argument_spec()
@ -174,6 +176,7 @@ def main():
module.exit_json(**ec2_facts_result)
# import module snippets
from ansible.module_utils.basic import *
from ansible.module_utils.urls import *

Loading…
Cancel
Save