Skip to content

Commit 991b3da

Browse files
author
abdul
committed
Supporting new 2.4.x dump option "--authenticationDatabase"
1 parent d48f3a2 commit 991b3da

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

mongoctl/mongoctl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5439,7 +5439,8 @@ def extract_mongo_exe_options(parsed_args, supported_options):
54395439
"repair",
54405440
"forceTableScan",
54415441
"ipv6",
5442-
"verbose"
5442+
"verbose",
5443+
"authenticationDatabase"
54435444
]
54445445

54455446
SUPPORTED_MONGO_RESTORE_OPTIONS = [

mongoctl/mongoctl_command_config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,13 @@
11111111
"cmd_arg": "--ipv6",
11121112
"nargs": 0,
11131113
"help": "enable IPv6 support (disabled by default)"
1114+
},
1115+
{
1116+
"name": "authenticationDatabase",
1117+
"type" : "optional",
1118+
"cmd_arg": "--authenticationDatabase",
1119+
"nargs": 1,
1120+
"help": "user source (defaults to dbname). 2.4.x or greater only."
11141121
}
11151122

11161123
]

0 commit comments

Comments
 (0)