def _get_public_ip(self):
        try:
            return self._get_metadata(constants.PUBLIC_ADDRESS_PATH)
        except MetadataError:
            return self._get_metadata(constants.VPC_PUBLIC_ADDRESS_PATH % self._get_mac())
dataset/ETHPy150Open facebookarchive/neti/neti/registry.py/Connection._get_public_ip/original