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",
*debug_args,
CMD_NAME,
instance_name,
arg_names.RED_VERSION,
str(red_version),
arg_names.PYTHON_VERSION,
str(python_version),
"--",
instance_name,
]
if ignore_prefix:
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",
*debug_args,
_UPDATE_COGS_CMD_NAME,
"--",
instance_name,
]
if update_repos:
+1
View File
@@ -653,6 +653,7 @@ class Updater:
"redbot.setup",
"backup",
*debug_args,
"--",
instance_name,
str(instance_backups_dir),
)