1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00

[redhat-3.16] fix(web): use single quotes in container login commands (PROJQUAY-9683) (#4447)

fix(web): use single quotes in container login commands (PROJQUAY-9683)

Application token and robot token credentials modals were using double
quotes in podman/docker login commands, causing authentication failures.
Changed to single quotes to match current UI behavior and ensure CLI
compatibility.

Signed-off-by: Brady Pratt <bpratt@redhat.com>
Co-authored-by: Brady Pratt <bpratt@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
OpenShift Cherrypick Robot
2025-11-06 17:58:26 +01:00
committed by GitHub
parent 80633214ce
commit 821baa4d5c
2 changed files with 7 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ export default function ApplicationTokenCredentials({
};
const getContainerLoginCommand = (runtime: 'docker' | 'podman') => {
return `${runtime} login -u="$app" -p="${token?.token_code}" ${getServerHostname()}`;
return `${runtime} login -u='$app' -p='${token?.token_code}' ${getServerHostname()}`;
};
const kubernetesYaml = useMemo(() => {

View File

@@ -378,11 +378,11 @@ export default function RobotTokensModal(props: RobotTokensModalProps) {
isReadOnly
id="podman-login"
>
{'podman login -u="' +
{"podman login -u='" +
tokenData.name +
'" -p="' +
"' -p='" +
tokenData.token +
'" ' +
"' " +
domain}
</ClipboardCopy>
</TextContent>
@@ -410,11 +410,11 @@ export default function RobotTokensModal(props: RobotTokensModalProps) {
isReadOnly
id="docker login"
>
{'docker login -u="' +
{"docker login -u='" +
tokenData.name +
'" -p="' +
"' -p='" +
tokenData.token +
'" ' +
"' " +
domain}
</ClipboardCopy>
</TextContent>