Skip to content

Commit d2ac690

Browse files
author
Lukas Gentele
authored
Merge pull request #165 from covexo/fix-list-issues
minor fix with config pointer
2 parents 60fa0d6 + 6810bb5 commit d2ac690

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

cmd/list.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,15 @@ func (cmd *ListCmd) RunListSync(cobraCmd *cobra.Command, args []string) {
107107

108108
excludedPaths := ""
109109

110-
for _, v := range *value.ExcludePaths {
111-
if len(excludedPaths) > 0 {
112-
excludedPaths += ", "
113-
}
110+
if value.ExcludePaths != nil {
111+
for _, v := range *value.ExcludePaths {
112+
if len(excludedPaths) > 0 {
113+
excludedPaths += ", "
114+
}
114115

115-
excludedPaths += v
116+
excludedPaths += v
117+
}
116118
}
117-
118119
syncPaths = append(syncPaths, []string{
119120
*value.ResourceType,
120121
selector,

0 commit comments

Comments
 (0)