Skip to content

Commit

Permalink
[FIX] close #162
Browse files Browse the repository at this point in the history
  • Loading branch information
gmeghnag committed May 21, 2024
1 parent 7fa8422 commit 7273c93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ func getNamespacedResources(resourceNamePlural string, resourceGroup string, res
fmt.Fprintln(os.Stderr, "Error when trying to unmarshal file "+podPath)
os.Exit(1)
}
UnstructuredItems.Items = append(UnstructuredItems.Items, podItem)
if podItem.Object != nil {
UnstructuredItems.Items = append(UnstructuredItems.Items, podItem)
}
}
} else if err := yaml.Unmarshal(_file, &UnstructuredItems); err != nil {
fmt.Fprintln(os.Stderr, err)
Expand Down

0 comments on commit 7273c93

Please sign in to comment.