Skip to content

Commit

Permalink
fix: formatting errors
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Golovin <[email protected]>
  • Loading branch information
dgolovin committed Jul 12, 2023
1 parent 4b43336 commit 20fdd8a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,16 @@ export async function pushImageToOpenShiftRegistry(image: ImageInfo): Promise<vo
// Upgrading docker-modem to required version leads to segfaut during the build
// { username: registryInfo.username, password: registryInfo.token, serveraddress: registryInfo.host },

// Manual encoding required to avoid image push error for
{ base64: base64url(JSON.stringify({ username: registryInfo.username, password: registryInfo.token, serveraddress: registryInfo.host }))} as any as extensionApi.AuthConfig,
// Manual encoding required to avoid image push error for
{
base64: base64url(
JSON.stringify({
username: registryInfo.username,
password: registryInfo.token,
serveraddress: registryInfo.host,
}),
),
} as any as extensionApi.AuthConfig,
);
} catch (err: unknown) {
reject(err);
Expand Down

0 comments on commit 20fdd8a

Please sign in to comment.