Skip to content

Commit

Permalink
Merge pull request #17 from lazouz/lazouz/support-yml
Browse files Browse the repository at this point in the history
add .yml file support
  • Loading branch information
carlpett authored May 27, 2019
2 parents 248234a + 919b4f1 commit 78be6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sops/data_sops_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func dataSourceFileRead(d *schema.ResourceData, meta interface{}) error {
switch ext := path.Ext(sourceFile); ext {
case ".json":
format = "json"
case ".yaml":
case ".yaml", ".yml":
format = "yaml"
default:
return fmt.Errorf("Don't know how to decode file with extension %s, set input_type to json, yaml or raw as appropriate", ext)
Expand Down

0 comments on commit 78be6b8

Please sign in to comment.