Skip to content

Commit 09c7891

Browse files
authored
added support for stdin destroy (srl-labs#2376)
1 parent b6b637d commit 09c7891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/destroy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func destroyFn(_ *cobra.Command, _ []string) error {
7070
return nil
7171
}
7272

73-
topos[topo] = filepath.Dir(cnts[0].Labels[labels.NodeLabDir])
73+
topos[cnts[0].Labels[labels.TopoFile]] = filepath.Dir(cnts[0].Labels[labels.NodeLabDir])
7474

7575
case all:
7676
containers, err := listContainers(ctx, topo)

0 commit comments

Comments
 (0)