(self, bay_ident)
return bay
Retrieve information about the given bay.

        :param bay_ident: UUID of a bay or logical name of the bay.
Retrieve information about the given bay.
Retrieve information about the given bay .
def get_one(self, bay_ident):
        """Retrieve information about the given bay.

        :param bay_ident: UUID of a bay or logical name of the bay.
        """
        context = pecan.request.context
        bay = api_utils.get_resource('Cluster', bay_ident)
        policy.enforce(context, 'bay:get', bay.as_dict(),
                       action='bay:get')

        bay = Bay.convert_with_links(bay)

        if bay.status in fields.ClusterStatus.STATUS_FAILED:
            bay.bay_faults = self._collect_fault_info(context, bay)

        return bay
def get_one ( self , bay_ident ) : context = pecan . request . context bay = api_utils . get_resource ( 'Cluster' , bay_ident ) policy . enforce ( context , 'bay:get' , bay . as_dict ( ) , action = 'bay:get' ) bay = Bay . convert_with_links ( bay ) if bay . status in fields . ClusterStatus . STATUS_FAILED : bay . bay_faults = self . _collect_fault_info ( context , bay ) return bay