Also read .yml file endings #178

Closed
opened 2019-05-16 19:39:41 +00:00 by decentral1se · 5 comments
Contributor

AFAICT, these don't get picked up and AFAICT, they should :) A lot of tools that deal with YAML do both. I don't know the history about this but this might be a bad experience for users who are used to being able to use these file endings types interchangeably.

AFAICT, these don't get picked up and AFAICT, they should :) A lot of tools that deal with YAML do both. I don't know the history about this but this might be a bad experience for users who are used to being able to use these file endings types interchangeably.
Author
Contributor

Can submit a PR if we're all in agreement.

Can submit a PR if we're all in agreement.
Owner

Can you say more or give some repro steps on where you'll seeing .yml file endings not getting picked up? As far as I know, there's nothing in the borgmatic code that even cares about the filename.. just the contents.

Thanks!

Can you say more or give some repro steps on where you'll seeing `.yml` file endings not getting picked up? As far as I know, there's nothing in the borgmatic code that even cares about the filename.. just the contents. Thanks!
Owner

Oh, I think I found a spot that does care:

borgmatic/config/collect.py:46:
if full_filename.endswith('.yaml') and not os.path.isdir(full_filename):

A PR would be most welcome!

Oh, I think I found a spot that does care: ```python borgmatic/config/collect.py:46: if full_filename.endswith('.yaml') and not os.path.isdir(full_filename): ``` A PR would be most welcome!
witten added the
design finalized
label 2019-05-17 23:32:26 +00:00
Owner

Thank you!

Thank you!
Owner

Just released as part of borgmatic 1.3.6. Enjoy!

Just released as part of borgmatic 1.3.6. Enjoy!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#178
No description provided.