Fix branch processing when no branches specified

This commit is contained in:
2022-09-28 10:21:37 -06:00
parent ead8d05858
commit a6ce56264b
2 changed files with 3 additions and 10 deletions
+1 -10
View File
@@ -20,16 +20,7 @@ import argparse
from decouple import config
from python_on_whales import DockerClient
import click
def include_exclude_check(s, include, exclude):
if include == None and exclude == None:
return True
if include != None:
include_list = include.split(",")
return s in include_list
if exclude != None:
exclude_list = exclude.split(",")
return s not in exclude_list
from .util import include_exclude_check
@click.command()
@click.option('--include', help="only start these components")