Skip to content

Commit

Permalink
fix(cli): cdk ls --long outputs less-friendly stack IDs for nested as…
Browse files Browse the repository at this point in the history
…semblies

Since #14379, `cdk ls` has outputted friendlier stack names for nested
assemblies (e.g., with pipelines). However, `cdk ls --long` still outputs the
less-friendly stack IDs.
  • Loading branch information
njlynch committed Nov 1, 2021
1 parent e9a461d commit 42b8e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/cdk-toolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class CdkToolkit {
const long = [];
for (const stack of stacks.stackArtifacts) {
long.push({
id: stack.id,
id: stack.hierarchicalId,
name: stack.stackName,
environment: stack.environment,
});
Expand Down

0 comments on commit 42b8e71

Please sign in to comment.