mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-11 14:42: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)
|
sys.exit(0)
|
||||||
|
|
||||||
repos = []
|
repos = []
|
||||||
|
groups = []
|
||||||
repos_and_group_repos = []
|
repos_and_group_repos = []
|
||||||
if not args.repo_name and not args.repo_group:
|
if not args.repo_name and not args.repo_group:
|
||||||
repos_and_group_repos.append("default")
|
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 == []:
|
if repos_and_group_repos is None or repos_and_group_repos == []:
|
||||||
json_error_logging(False, "No valid repos selected", level="error")
|
json_error_logging(False, "No valid repos selected", level="error")
|
||||||
sys.exit(74)
|
sys.exit(74)
|
||||||
|
group_info = ""
|
||||||
|
if groups:
|
||||||
|
group_info = f"corresponding to groups {', '.join(groups)}"
|
||||||
logger.info(
|
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"]
|
op = cli_args["operation"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue