mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
Re-add code for using EC2 internal addresses in makedist.py
This commit is contained in:
parent
c2aa439415
commit
430527b642
@ -150,8 +150,12 @@ class EC2InstanceConfigurator(BaseConfigurator):
|
||||
class nodeWrapper(object):
|
||||
def __init__(self, configurator, **kwargs):
|
||||
self.terminate = False if "no_terminate" in kwargs else True
|
||||
self.use_internal_name = False
|
||||
|
||||
def getHostname(self):
|
||||
if self.use_internal_name:
|
||||
return self.node.private_ip[0]
|
||||
else:
|
||||
return self.node.public_ip[0] # FIXME private_ip?
|
||||
|
||||
def initwait(self):
|
||||
|
Loading…
Reference in New Issue
Block a user