Esempio n. 1
0
 def show(self, req, tenant_id, id):
     """Return a single cluster."""
     LOG.debug("Showing cluster for tenant '%s'." % tenant_id)
     LOG.info(_("req : '%s'\n\n") % req)
     LOG.info(_("id : '%s'\n\n") % id)
     context = req.environ[wsgi.CONTEXT_KEY]
     cluster = models.MgmtCluster.load(context, id)
     return wsgi.Result(views.load_mgmt_view(cluster, req=req).data(), 200)
Esempio n. 2
0
 def show(self, req, tenant_id, id):
     """Return a single cluster."""
     LOG.debug("Showing cluster for tenant '%s'." % tenant_id)
     LOG.info(_("req : '%s'\n\n") % req)
     LOG.info(_("id : '%s'\n\n") % id)
     context = req.environ[wsgi.CONTEXT_KEY]
     cluster = models.MgmtCluster.load(context, id)
     return wsgi.Result(views.load_mgmt_view(cluster, req=req).data(), 200)
Esempio n. 3
0
    def show(self, req, tenant_id, id):
        """Return a single cluster."""
        LOG.info(_("Showing cluster for tenant '%(tenant_id)s'.\n"
                   "req : '%(req)s'\n"
                   "id : '%(id)s'") % {
                       "tenant_id": tenant_id, "req": req, "id": id})

        context = req.environ[wsgi.CONTEXT_KEY]
        cluster = models.MgmtCluster.load(context, id)
        return wsgi.Result(
            views.load_mgmt_view(cluster, req=req).data(),
            200)
Esempio n. 4
0
    def show(self, req, tenant_id, id):
        """Return a single cluster."""
        LOG.info(
            "Showing cluster for tenant '%(tenant_id)s'.\n"
            "req : '%(req)s'\n"
            "id : '%(id)s'", {
                "tenant_id": tenant_id,
                "req": req,
                "id": id
            })

        context = req.environ[wsgi.CONTEXT_KEY]
        cluster = models.MgmtCluster.load(context, id)
        return wsgi.Result(views.load_mgmt_view(cluster, req=req).data(), 200)