0
0
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:
Richard Kreuter 2010-07-01 11:06:40 -04:00
parent c2aa439415
commit 430527b642

View File

@ -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):