Fix branch processing when no branches specified

This commit is contained in:
David Boreham 2022-09-28 10:21:37 -06:00
parent ead8d05858
commit a6ce56264b
2 changed files with 3 additions and 10 deletions

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")

View File

@ -58,6 +58,8 @@ def command(ctx, check_only, pull, branches_file):
verbose = ctx.obj.verbose
dry_run = ctx.obj.dry_run
branches = []
if branches_file:
if verbose:
print(f"loading branches from: {branches_file}")