boundary/relay_list.py
def _filter(self):
        """
        Apply the criteria to filter out on the output required
        """
        if self._metrics or self._control or self._plugins:
            relays = self._relays['result']['relays']
            for relay in relays:
                if self._metrics:
                    del relays[relay]['metrics']
                if self._control:
                    del relays[relay]['control']
                if self._plugins:
                    if 'plugins' in relays[relay]:
                        del relays[relay]['plugins']
def _filter(self):
        if self._metrics or self._control or self._plugins:
            relays = self._relays['result']['relays']
            for relay in relays:
                if self._metrics:
                    del relays[relay]['metrics']
                if self._control:
                    del relays[relay]['control']
                if self._plugins:
                    if 'plugins' in relays[relay]:
                        del relays[relay]['plugins']
def _filter ( self ) : if self . _metrics or self . _control or self . _plugins : relays = self . _relays [ 'result' ] [ 'relays' ] for relay in relays : if self . _metrics : del relays [ relay ] [ 'metrics' ] if self . _control : del relays [ relay ] [ 'control' ] if self . _plugins : if 'plugins' in relays [ relay ] : del relays [ relay ] [ 'plugins' ]
Apply the criteria to filter out on the output required
Apply the criteria to filter out on the output required