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 (#17263)

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.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
njlynch authored Nov 2, 2021
1 parent 1ab9b26 commit 864c50e
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 864c50e

Please sign in to comment.