forked from cerc-io/stack-orchestrator
		
	Merge pull request #8 from cerc-io/dboreham/fix-setup-repos
Fix branch processing when no branches specified
This commit is contained in:
		
						commit
						9e9a88fe3d
					
				| @ -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") | ||||
|  | ||||
| @ -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}") | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user