Azure / orkestra

Orkestra is a cloud-native release orchestration and lifecycle management (LCM) platform for the fine-grained orchestration of inter-dependent helm charts and their dependencies
https://azure.github.io/orkestra
Other
105 stars 16 forks source link

IsFileYaml() returns true if non yaml file's extension contains suffix yaml or yml #326

Closed mahalrs closed 3 years ago

mahalrs commented 3 years ago

Describe the bug IsFileYaml() in pkg/utils/helpers.go returns true if file extension contains suffix yaml or yml. For example, it returns true if the file name is "mycustomfile-extension.nonyaml"

To Reproduce NA

Expected behavior It should return false.

Screenshots NA

Environment (please complete the following information): NA

Additional context NA