Commits

Enis Afgan  committed 1a5f3a2

Actually get the public IP in the get_public_ip method method

  • Participants
  • Parent commits 401813e

Comments (0)

Files changed (1)

File cm/clouds/ec2.py

             for i in range(0, 5):
                 try:
                     log.debug('Gathering instance public hostname, attempt %s' % i)
-                    fp = urllib.urlopen('http://169.254.169.254/latest/meta-data/local-ipv4')
+                    fp = urllib.urlopen('http://169.254.169.254/latest/meta-data/public-ipv4')
                     self.self_public_ip = fp.read()
                     fp.close()
                     if self.self_public_ip: