Fix branch processing when no branches specified #8

Merged
telackey merged 1 commits from dboreham/fix-setup-repos into main 2022-09-28 16:22:02 +00:00
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}")