Skip to content

Commit

Permalink
show troubleshoot directories names instead of paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Jun 18, 2020
1 parent 0fc8064 commit 8199ba6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kotsadm/pkg/supportbundle/filetree.go
Expand Up @@ -82,8 +82,9 @@ func archiveToFileTree(archivePath string) (*types.FileTree, error) {
}

func getDirectoryNode(directory string, directories []string, files []string) (*types.FileTreeNode, error) {
_, f := filepath.Split(directory)
node := types.FileTreeNode{
Name: directory,
Name: f,
Path: directory,
}

Expand Down

0 comments on commit 8199ba6

Please sign in to comment.