0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +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,9 +150,13 @@ 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):
return self.node.public_ip[0] # FIXME private_ip?
if self.use_internal_name:
return self.node.private_ip[0]
else:
return self.node.public_ip[0] # FIXME private_ip?
def initwait(self):
print "waiting for node to spin up"