forked from cerc-io/stack-orchestrator
Fix branch processing when no branches specified
This commit is contained in:
parent
ead8d05858
commit
a6ce56264b
@ -20,16 +20,7 @@ import argparse
|
|||||||
from decouple import config
|
from decouple import config
|
||||||
from python_on_whales import DockerClient
|
from python_on_whales import DockerClient
|
||||||
import click
|
import click
|
||||||
|
from .util import include_exclude_check
|
||||||
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
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@click.option('--include', help="only start these components")
|
@click.option('--include', help="only start these components")
|
||||||
|
@ -58,6 +58,8 @@ def command(ctx, check_only, pull, branches_file):
|
|||||||
verbose = ctx.obj.verbose
|
verbose = ctx.obj.verbose
|
||||||
dry_run = ctx.obj.dry_run
|
dry_run = ctx.obj.dry_run
|
||||||
|
|
||||||
|
branches = []
|
||||||
|
|
||||||
if branches_file:
|
if branches_file:
|
||||||
if verbose:
|
if verbose:
|
||||||
print(f"loading branches from: {branches_file}")
|
print(f"loading branches from: {branches_file}")
|
||||||
|
Loading…
Reference in New Issue
Block a user