1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

small fix

This commit is contained in:
NoSkillGirl 2020-06-01 17:15:23 +05:30
parent 64185291da
commit 83a3ae14c6

View file

@ -187,7 +187,10 @@ func getResource(path string) ([]*unstructured.Unstructured, error) {
return nil, err return nil, err
} }
files := common.SplitYAMLDocuments(file) files, splitDocError := common.SplitYAMLDocuments(file)
if splitDocError != nil {
return nil, splitDocError
}
for _, resourceYaml := range files { for _, resourceYaml := range files {