Closed mpas97 closed 6 months ago
Thanks for your contribution! Could you please add a changelog fragment? Thanks!
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
10fbc56
) 82.97% compared to head (33b11ba
) 82.97%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@mpas97 thank you very much for fixing this! @derdeagle thanks for reviewing!
SUMMARY
As in newer versions of RouterOS the date format in the export is 2024-10-02 and no longer 2024/10/02, the regex to remove timestamps did no longer match all cases. This is fixed here.
CONTEXT
Documentation says that, the ansible_net_config_nonverbose fact is idempotent in the sense that if the facts module is run twice and the device’s config was not changed between the runs, the value is identical. This is achieved by running /export and stripping the timestamp from the comment in the first line.
ISSUE TYPE
COMPONENT NAME
facts
ADDITIONAL INFORMATION
Date was successfully removed from export in RouterOS 7.9. but not in 7.12.