mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
small fix
This commit is contained in:
parent
64185291da
commit
83a3ae14c6
1 changed files with 4 additions and 1 deletions
|
@ -187,7 +187,10 @@ func getResource(path string) ([]*unstructured.Unstructured, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
files := common.SplitYAMLDocuments(file)
|
||||
files, splitDocError := common.SplitYAMLDocuments(file)
|
||||
if splitDocError != nil {
|
||||
return nil, splitDocError
|
||||
}
|
||||
|
||||
for _, resourceYaml := range files {
|
||||
|
||||
|
|
Loading…
Reference in a new issue