Skip to content

Commit

Permalink
Merge pull request #228 from mathcantin/chech_all_services
Browse files Browse the repository at this point in the history
Check all services by default on swarm mode
  • Loading branch information
dirtycajunrice authored Feb 20, 2019
2 parents 549fc9a + 579f78b commit c76a0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyouroboros/dockerclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def monitor_filter(self):

for service in services:
ouro_label = service.attrs['Spec']['Labels'].get('com.ouroboros.enable')
if ouro_label.lower() in ["true", "yes"]:
if not self.config.label_enable or ouro_label.lower() in ["true", "yes"]:
monitored_services.append(service)

self.data_manager.monitored_containers[self.socket] = len(monitored_services)
Expand Down

0 comments on commit c76a0f7

Please sign in to comment.