Ensure that instance names are treated as positional args (#6780)

This commit is contained in:
Jakub Kuczys
2026-05-26 00:09:13 +02:00
committed by GitHub
parent f5571d3909
commit d128335f1d
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -169,11 +169,12 @@ async def call(
"redbot._update", "redbot._update",
*debug_args, *debug_args,
CMD_NAME, CMD_NAME,
instance_name,
arg_names.RED_VERSION, arg_names.RED_VERSION,
str(red_version), str(red_version),
arg_names.PYTHON_VERSION, arg_names.PYTHON_VERSION,
str(python_version), str(python_version),
"--",
instance_name,
] ]
if ignore_prefix: if ignore_prefix:
args.append(arg_names.CHECK_OTHER_PYTHON_INSTALLS) args.append(arg_names.CHECK_OTHER_PYTHON_INSTALLS)
+1
View File
@@ -393,6 +393,7 @@ async def _call_cog_update(instance_name: str, *, update_repos: bool) -> Tuple[i
"redbot._update.internal", "redbot._update.internal",
*debug_args, *debug_args,
_UPDATE_COGS_CMD_NAME, _UPDATE_COGS_CMD_NAME,
"--",
instance_name, instance_name,
] ]
if update_repos: if update_repos:
+1
View File
@@ -653,6 +653,7 @@ class Updater:
"redbot.setup", "redbot.setup",
"backup", "backup",
*debug_args, *debug_args,
"--",
instance_name, instance_name,
str(instance_backups_dir), str(instance_backups_dir),
) )