def is_solr_cloud_mode(self):
    api = SolrApi(SOLR_URL.get(), self.user, SECURITY_ENABLED.get())
    if not hasattr(self, '_solr_cloud_mode'):
      try:
        api.collections()
        setattr(self, '_solr_cloud_mode', True)
      except Exception, e:
        LOG.info(e % 'Non SolrCloud server: %s')
        setattr(self, '_solr_cloud_mode', False)
    return getattr(self, '_solr_cloud_mode')
dataset/ETHPy150Open cloudera/hue/desktop/libs/indexer/src/indexer/controller.py/CollectionManagerController.is_solr_cloud_mode/swapped operands of `%`