forked from p15670423/monkey
* Fixed the aws env class to not be static anymore after itay's change.
* Added aws region getter
This commit is contained in:
parent
7f8a00ddc1
commit
fb5ae63f04
|
@ -18,10 +18,6 @@ class AwsEnvironment(Environment):
|
||||||
def _get_region(self):
|
def _get_region(self):
|
||||||
return self.aws_info.get_region()
|
return self.aws_info.get_region()
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def _get_region():
|
|
||||||
return urllib2.urlopen('http://169.254.169.254/latest/meta-data/placement/availability-zone').read()[:-1]
|
|
||||||
|
|
||||||
def is_auth_enabled(self):
|
def is_auth_enabled(self):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue