dockupdater/lib/scanner.py
def _scan_services(self):
        """Return filtered service objects list to update"""
        monitored_services = []

        for service in self.get_services():
            enable_label = convert_to_boolean(service.attrs['Spec']['Labels'].get(ENABLE_LABEL, False))
            disable_label = convert_to_boolean(service.attrs['Spec']['Labels'].get(DISABLE_LABEL, False))
            if (not self.config.label or enable_label) and not disable_label:
                monitored_services.append(Service(self.docker, service))

        self.logger.info("total services monitored: %s", len(monitored_services))

        return monitored_services
Return filtered service objects list to update
Return filtered service objects list to update
Return filtered service objects list to update
def _scan_services(self):
        monitored_services = []
        for service in self.get_services():
            enable_label = convert_to_boolean(service.attrs['Spec']['Labels'].get(ENABLE_LABEL, False))
            disable_label = convert_to_boolean(service.attrs['Spec']['Labels'].get(DISABLE_LABEL, False))
            if (not self.config.label or enable_label) and not disable_label:
                monitored_services.append(Service(self.docker, service))
        self.logger.info("total services monitored: %s", len(monitored_services))
        return monitored_services
def _scan_services ( self ) : monitored_services = [ ] for service in self . get_services ( ) : enable_label = convert_to_boolean ( service . attrs [ 'Spec' ] [ 'Labels' ] . get ( ENABLE_LABEL , False ) ) disable_label = convert_to_boolean ( service . attrs [ 'Spec' ] [ 'Labels' ] . get ( DISABLE_LABEL , False ) ) if ( not self . config . label or enable_label ) and not disable_label : monitored_services . append ( Service ( self . docker , service ) ) self . logger . info ( "total services monitored: %s" , len ( monitored_services ) ) return monitored_services
Return filtered service objects list to update
Return filtered service objects list to update
"""Return filtered service objects list to update"""
self