mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-10 23:15:37 +08:00
CLI: Fix --repo-name trying to show group membership
This commit is contained in:
parent
40e1ea6122
commit
8d3d671968
1 changed files with 5 additions and 1 deletions
|
@ -409,6 +409,7 @@ This is free software, and you are welcome to redistribute it under certain cond
|
|||
sys.exit(0)
|
||||
|
||||
repos = []
|
||||
groups = []
|
||||
repos_and_group_repos = []
|
||||
if not args.repo_name and not args.repo_group:
|
||||
repos_and_group_repos.append("default")
|
||||
|
@ -749,8 +750,11 @@ This is free software, and you are welcome to redistribute it under certain cond
|
|||
if repos_and_group_repos is None or repos_and_group_repos == []:
|
||||
json_error_logging(False, "No valid repos selected", level="error")
|
||||
sys.exit(74)
|
||||
group_info = ""
|
||||
if groups:
|
||||
group_info = f"corresponding to groups {', '.join(groups)}"
|
||||
logger.info(
|
||||
f"Found repositories {', '.join(repos_and_group_repos)} corresponding to groups {', '.join(groups)}"
|
||||
f"Found repositories {', '.join(repos_and_group_repos)}{group_info}"
|
||||
)
|
||||
|
||||
op = cli_args["operation"]
|
||||
|
|
Loading…
Add table
Reference in a new issue