dockupdater/lib/scanner.py
def _scan_containers(self):
        """Return filtered container objects list to update"""
        monitored_containers = []

        for container in self.get_containers():
            enable_label = convert_to_boolean(container.labels.get(ENABLE_LABEL, False))
            disable_label = convert_to_boolean(container.labels.get(DISABLE_LABEL, False))
            swarm = container.labels.get('com.docker.stack.namespace', False)
            if (not self.config.label or enable_label) and not disable_label and not swarm:
                monitored_containers.append(Container(self.docker, container))
            else:
                self.logger.debug("skip monitoring for %s", container.name)

        self.logger.info("total containers monitored: %s", len(monitored_containers))

        return monitored_containers
Return filtered container objects list to update
Return filtered container objects list to update
Return filtered container objects list to update
def _scan_containers(self):
        monitored_containers = []
        for container in self.get_containers():
            enable_label = convert_to_boolean(container.labels.get(ENABLE_LABEL, False))
            disable_label = convert_to_boolean(container.labels.get(DISABLE_LABEL, False))
            swarm = container.labels.get('com.docker.stack.namespace', False)
            if (not self.config.label or enable_label) and not disable_label and not swarm:
                monitored_containers.append(Container(self.docker, container))
            else:
                self.logger.debug("skip monitoring for %s", container.name)
        self.logger.info("total containers monitored: %s", len(monitored_containers))
        return monitored_containers
def _scan_containers ( self ) : monitored_containers = [ ] for container in self . get_containers ( ) : enable_label = convert_to_boolean ( container . labels . get ( ENABLE_LABEL , False ) ) disable_label = convert_to_boolean ( container . labels . get ( DISABLE_LABEL , False ) ) swarm = container . labels . get ( 'com.docker.stack.namespace' , False ) if ( not self . config . label or enable_label ) and not disable_label and not swarm : monitored_containers . append ( Container ( self . docker , container ) ) else : self . logger . debug ( "skip monitoring for %s" , container . name ) self . logger . info ( "total containers monitored: %s" , len ( monitored_containers ) ) return monitored_containers
Return filtered container objects list to update
Return filtered container objects list to update
"""Return filtered container objects list to update"""
self