Skip to content

Commit

Permalink
refactor(legacy): CEXT-3841 remove apiKey from command output
Browse files Browse the repository at this point in the history
  • Loading branch information
amolina-adobe committed Nov 25, 2024
1 parent 59e3708 commit 0cdf389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 3 additions & 7 deletions src/commands/api-mesh/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class CreateCommand extends Command {

if (shouldContinue) {
try {
const { mesh, apiKey, sdkList } = await createMesh(
const { mesh } = await createMesh(
imsOrgId,
projectId,
workspaceId,
Expand Down Expand Up @@ -158,12 +158,8 @@ class CreateCommand extends Command {
this.log('Mesh Endpoint: %s', meshUrl);

// When renaming the return values, make sure to make necessary changes to
// template adobe/generator-app-api-mesh since it relies on "mesh" & "apiKey"
return {
mesh,
apiKey,
sdkList,
};
// template adobe/generator-app-api-mesh since it relies on "mesh"
return { mesh };
} else {
this.error(`Unable to create a mesh. Please try again. RequestId: ${global.requestId}`, {
exit: false,
Expand Down
4 changes: 1 addition & 3 deletions src/lib/devConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const describeMesh = async (organizationId, projectId, workspaceId, workspaceNam

logger.info('Response from getMeshId %s', meshId);

return { meshId, apiKey: null };
return { meshId };
} catch (error) {
logger.error(error);

Expand Down Expand Up @@ -258,8 +258,6 @@ const createMesh = async (

return {
mesh: response.data,
apiKey: null,
sdkList: null,
};
} else {
// Non 201 response received
Expand Down

0 comments on commit 0cdf389

Please sign in to comment.