def run(self, container, report):
    container_port = self.config.getExtraField('port')
    container_ip = self.getContainerIPAddress(container)

    address = (self.protocol, container_ip, container_port) % '%s://%s:%s'
    if self.config.hasExtraField('path'):
      address += self.config.getExtraField('path')

    report('Checking HTTP address in container ' + container['Id'][0:12] + ': ' + address,
      level = ReportLevels.EXTRA)
    try:
      response = urllib2.urlopen(address, timeout=2)
      response.read()
    except Exception as exc:
      self.logger.exception(exc)
      return False

    return True
dataset/ETHPy150Open DevTable/gantryd/health/networkcheck.py/HttpRequestCheck.run/swapped operands of `%`